Merge pull request #53 from abuechler/patch-1 #88
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push, pull_request, release] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.22' | |
- run: go install github.com/mattn/goveralls@latest | |
- run: | | |
make test | |
make | |
make build.docker | |
- run: goveralls -coverprofile=profile.cov -service=github | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push the latest Docker image | |
run: | | |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | |
VERSION=latest make build.push | |
if: github.ref == 'refs/heads/master' | |
- name: Push the release Docker image | |
run: | | |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | |
VERSION=$GITHUB_REF_NAME make build.push | |
if: github.event_name == 'release' |