Skip to content

Commit

Permalink
build: [#8] Docker build arg to ensure that multiple images can be bu…
Browse files Browse the repository at this point in the history
…ilt and pushed (#19)

* build: [#8] Docker build arg to ensure that multiple images can be built and pushed

* feat: [#8] Use version 0.6.0 of docker action that supports push of different images
  • Loading branch information
sbp-bvanb authored Dec 11, 2024
1 parent 98db73b commit f402924
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ permissions:
packages: write
jobs:
mcvs-docker-action:
runs-on: ubuntu-20.04
strategy:
matrix:
build-args:
- mcvs-integrationtest-services
- mcvs-stub-server
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: schubergphilis/mcvs-docker-action@v0.5.6
- uses: schubergphilis/mcvs-docker-action@v0.6.0
with:
build-args: ${{ matrix.build-args }}
images: ghcr.io/${{ github.repository }}/${{ matrix.build-args }}
dockle-accept-key: curl,HOME,libcrypto3,libssl3,PATH
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# sorted alphabetically
* @sbp-bvanb @wimspaargaren
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG APPLICATION=mcvs-integrationtest-services

FROM golang:1.23.3-alpine AS builder
FROM golang:1.23.4-alpine AS builder
ARG APPLICATION
ENV CGO_ENABLED=0 \
GOARCH=amd64 \
Expand All @@ -10,9 +10,10 @@ WORKDIR /app
# can prevent redundant execution during each Docker image build, significantly
# accelerating the development process.
RUN apk update && \
apk upgrade && \
apk add \
--no-cache \
ca-certificates=~20240705-r0 \
ca-certificates=~20241010 \
git=~2 \
tzdata=~2024 && \
update-ca-certificates
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module schubergphilis/mcvs-integrationtest-services

go 1.23.3
go 1.23.4

require (
github.com/labstack/echo/v4 v4.13.0
Expand Down

0 comments on commit f402924

Please sign in to comment.