Skip to content

Bump go to 1.21

Bump go to 1.21 #87

Workflow file for this run

name: Docker Package
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...
- 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: ${{ 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