Skip to content

Commit 0fd9e61

Browse files
committed
Changes so any push results in build
1 parent fdd38fc commit 0fd9e61

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build-docker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build Taiga image
22

3-
on:
4-
push:
5-
branches: main
3+
on: push
64

75
env:
86
IMAGE_TAG: us.gcr.io/cds-docker-containers/taiga:ga-build-${{ github.run_number }}
@@ -33,6 +31,8 @@ jobs:
3331
- name: Push Docker image
3432
run: docker push ${{ env.IMAGE_TAG }}
3533
- name: Tag as latest
34+
if: github.ref == 'refs/heads/main'
3635
run: docker tag ${{ env.IMAGE_TAG }} ${{ env.FINAL_IMAGE_TAG }}
3736
- name: Push Docker image
37+
if: github.ref == 'refs/heads/main'
3838
run: docker push ${{ env.FINAL_IMAGE_TAG }}

0 commit comments

Comments
 (0)