Skip to content

Commit 14cba76

Browse files
committed
another try
1 parent 6863f31 commit 14cba76

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/docker.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,9 @@ jobs:
5555
with:
5656
args: --build-tags client -p bugs -p unused --timeout=3m
5757

58-
- name: Make tag
59-
run: |
60-
[ "${BRANCH_NAME}" == 'main' ] && echo "tag=latest" >> $GITHUB_ENV || true
61-
[ "${BRANCH_NAME}" != 'main' ] && echo "tag=${BRANCH_NAME}" >> $GITHUB_ENV || true
62-
6358
- name: Build and push image
6459
uses: docker/build-push-action@v6
6560
with:
6661
context: .
6762
push: true
68-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}
63+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ 'latest' if env.BRANCH_NAME == 'main' else env.BRANCH_NAME }}

0 commit comments

Comments
 (0)