Skip to content

Commit

Permalink
Tweak to release tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
brantburnett committed Aug 24, 2020
1 parent 0de7223 commit 2e2b760
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- run: echo "::set-env name=VERSION::${{ github.event.release.tag_name }}"
if: ${{ startsWith(github.ref, 'refs/tags/') }}
- run: echo "::set-env name=VERSION::${GITHUB_REF/refs\/tags\/release\//}"
if: ${{ startsWith(github.ref, 'refs/tags/release/') }}
- run: echo "::set-env name=VERSION::0.1.0-local"
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
if: ${{ !startsWith(github.ref, 'refs/tags/release/') }}
- uses: docker/build-push-action@v1
with:
build_args: VERSION=${{ env.VERSION }}
Expand All @@ -52,4 +52,4 @@ jobs:
repository: centeredge/yardarm
tag_with_ref: true
tag_with_sha: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
push: ${{ startsWith(github.ref, 'refs/tags/release/') }}

0 comments on commit 2e2b760

Please sign in to comment.