Merge pull request #19 from domgolonka/dependabot/go_modules/golang.o… #121
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: Check & test & docker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
name: Quality & security checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.19 | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Lint Go Code | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
make check | |
docker: | |
name: Publish to docker hub | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Version tag | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: domgolonka/foretoken | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Latest tag | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: domgolonka/foretoken | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
tag_names: true |