From 11d6ca1232bea45f318a8af30619cbf914eccac1 Mon Sep 17 00:00:00 2001 From: Akshay Gaikwad Date: Tue, 8 Mar 2022 17:49:27 +0530 Subject: [PATCH] Remove on-branches from release workflow --- .github/workflows/release.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ccac890..e46bf84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,6 @@ name: Create, publish container image on: push: - branches: [ main ] tags: [ 'v*.*.*' ] env: @@ -29,20 +28,11 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Get short SHA - run: echo ::set-output name=sha_short::${GITHUB_SHA::8} - id: vars - - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=schedule - type=ref,suffix=-${{steps.vars.outputs.sha_short}},event=branch - type=ref,event=tag - type=ref,event=pr - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc