Skip to content

Commit

Permalink
Fix if condition in docker.yaml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nitezs committed Mar 12, 2024
1 parent 79f71dc commit 4188227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ jobs:
- name: Prepare tags and build args
id: prep
run: |
if [[ "${{ github.event_name }}" == 'workflow_dispatch']]; then
if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
TAGS="dev"
VERSION="${{ github.sha }}"
fi
if [[ "$GITHUB_REF" == 'refs/heads/dev' ]]; then
TAGS="dev"
VERSION="${{ github.sha }}"
fi
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
if [[ "$GITHUB_REF" == 'refs/tags/'* ]]; then
TAG_NAME=${GITHUB_REF#refs/tags/}
TAGS="latest,$TAG_NAME"
VERSION=$TAG_NAME
Expand Down

0 comments on commit 4188227

Please sign in to comment.