diff --git a/.github/workflows/build-push-backend.yml b/.github/workflows/build-push-backend.yml index 04622f3..cec9d99 100644 --- a/.github/workflows/build-push-backend.yml +++ b/.github/workflows/build-push-backend.yml @@ -32,13 +32,9 @@ jobs: with: images: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/backend tags: | - # set latest tag for default branch - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} - # tag event 'refs/tags/v1.0.0' will generate 'v1.0.0' + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} type=ref,event=tag - # branch event 'refs/heads/main' will generate 'main' type=ref,event=branch - # sha type=sha - name: Build and push Docker image diff --git a/.github/workflows/build-push-frontend.yml b/.github/workflows/build-push-frontend.yml index 6057f99..4f482a4 100644 --- a/.github/workflows/build-push-frontend.yml +++ b/.github/workflows/build-push-frontend.yml @@ -35,7 +35,7 @@ jobs: with: images: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/frontend tags: | - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} type=ref,event=tag type=ref,event=branch type=sha