Skip to content

Merge pull request #20 from domgolonka/dependabot/go_modules/github.c… #118

Merge pull request #20 from domgolonka/dependabot/go_modules/github.c…

Merge pull request #20 from domgolonka/dependabot/go_modules/github.c… #118

Workflow file for this run

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