Browse Source

Use GitHub action for Docker builds

master
Jan-Lukas Else 1 month ago
parent
commit
53c54e7c8d
  1. 14
      .github/workflows/master.yml
  2. 4
      .golangci.yml

14
.github/workflows/master.yml

@ -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

4
.golangci.yml

@ -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…
Cancel
Save