From 4981cd757587ccf6fc52ba34319b0820781d02e6 Mon Sep 17 00:00:00 2001 From: Praveen Date: Mon, 7 Oct 2024 16:22:45 +0530 Subject: [PATCH] my-test-stage test check whether the label works by default --- .github/workflows/build-and-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index ef1868e..c758f84 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -2,7 +2,7 @@ name: Build and Publish on: push: - branches: [ 'main' ] # Trigger on push to 'main' + branches: [ 'develop' ] # Trigger on push to 'main' tags: [ '[0-9]+.[0-9]+.[0-9]+' ] # Trigger on version tags like '0.1.0' jobs: @@ -38,10 +38,10 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - labels: | - org.opencontainers.image.source=${{ github.repository }} - org.opencontainers.image.revision=${{ github.sha }} - org.opencontainers.image.created=${{ github.event.head_commit.timestamp }} + # labels: | + # org.opencontainers.image.source=${{ github.repository }} + # org.opencontainers.image.revision=${{ github.sha }} + # org.opencontainers.image.created=${{ github.event.head_commit.timestamp }} - name: Build and push Docker image to Docker Hub and GHCR uses: docker/build-push-action@v5