Skip to content

Update release system to tag latest (master) and stable #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Nov 6, 2022
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