Use GitHub action for Docker builds

This commit is contained in:
Jan-Lukas Else 2022-04-06 10:44:43 +02:00
parent 9c1ddbd6d7
commit 53c54e7c8d
2 changed files with 12 additions and 6 deletions

View File

@ -41,8 +41,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build base image
run: DOCKER_BUILDKIT=1 docker build -t ghcr.io/jlelse/goblog:latest . --target base
uses: docker/build-push-action@v2
with:
push: true
target: base
tags: ghcr.io/jlelse/goblog:latest
- name: Build tools image
run: DOCKER_BUILDKIT=1 docker build -t ghcr.io/jlelse/goblog:tools . --target tools
- name: Push images
run: docker push --all-tags ghcr.io/jlelse/goblog
uses: docker/build-push-action@v2
with:
push: true
target: tools
tags: ghcr.io/jlelse/goblog:tools

View File

@ -9,7 +9,7 @@ run:
linters:
enable:
# Default linters
- deadcode
# - deadcode
- errcheck
- gosimple
- govet
@ -29,7 +29,7 @@ linters:
- bidichk
- containedctx
- contextcheck
- gosec
# - gosec
linters-settings:
gosimple:
go: "1.18"