mirror of https://github.com/jlelse/GoBlog
Use GitHub action for Docker builds
This commit is contained in:
parent
9c1ddbd6d7
commit
53c54e7c8d
|
@ -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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue