Skip to content

Commit

Permalink
Fix Push Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Ealenn authored May 21, 2020
1 parent 8224b0c commit 646bdc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
push:
branches:
- master
release:
types: [published]
tags:
- '*'

jobs:
build:
Expand All @@ -15,7 +15,7 @@ jobs:
id: prepare
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
echo ::set-output name=version::$(echo $GITHUB_REF | cut -d / -f 3)
elif [[ $GITHUB_REF == refs/heads/master ]]; then
echo ::set-output name=version::latest
elif [[ $GITHUB_REF == refs/heads/* ]]; then
Expand Down

0 comments on commit 646bdc0

Please sign in to comment.