Skip to content

Commit

Permalink
Update release system to tag latest (master) and stable (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman authored Nov 6, 2022
1 parent c2df9cb commit 6a8129f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Publish to Docker
on:
push:
branches:
- master
name: Docker Package
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -20,12 +17,16 @@ jobs:
- name: Test
run: go test -v ./...

- name: Echo build ref
run: echo ${{ github.ref }}

- name: Build container
uses: docker/build-push-action@v1
with:
username: scosman
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: scosman/packages/zipstreamer
tags: latest
tags: ${{ format('{0},{1}', (startsWith(github.ref, 'refs/heads/master') && 'latest' || 'dev_branch'), (startsWith(github.ref, 'refs/tags/v') && 'stable' || 'non-stable')) }}
tag_with_sha: true
tag_with_ref: true

0 comments on commit 6a8129f

Please sign in to comment.