From 7bb0bf565cf4c69ac62f636edfeb529c5e88fae8 Mon Sep 17 00:00:00 2001 From: Akshay Gaikwad Date: Thu, 26 May 2022 12:22:34 +0530 Subject: [PATCH] CI(Release): Build image on push to main branch Signed-off-by: Akshay Gaikwad --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0836e05..e120076 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,7 @@ name: Create, publish container image on: push: + branches: [ main ] tags: [ 'v*.*.*' ] env: @@ -42,6 +43,12 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=schedule + type=ref,event=branch + type=ref,event=tag + type=ref,event=pr + type=sha - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc