Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfilyanin authored Aug 29, 2024
1 parent 562a243 commit 4641bcc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set Docker tag
id: set-docker-tag
run: |
if [ "${GITHUB_REF##*/}" == "main" ]; then
echo "tag=latest" >> $GITHUB_ENV
else
echo "tag=qa" >> $GITHUB_ENV
fi
- name: Build and push Dashboard image
uses: docker/build-push-action@master
with:
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}

deploy-dashboard-k8s:
needs: [build-and-push-dashboard-image]
Expand Down

0 comments on commit 4641bcc

Please sign in to comment.