Skip to content

Commit

Permalink
Attempt to reduce code reuse in action
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
  • Loading branch information
PromoFaux committed Jul 3, 2023
1 parent 56e2db6 commit 54e87b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/v6-alpine-play.yml
Expand Up @@ -16,19 +16,11 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [linux/amd64, linux/386, linux/arm/v6, linux/arm/v7, linux/arm64/v8]
container: [3.18]
include:
- platform: linux/amd64
container: alpine:3.18
- platform: linux/386
container: alpine:3.18
- platform: linux/arm/v6
container: alpine:3.18
- platform: linux/arm/v7
container: alpine:3.18
- platform: linux/arm64/v8
container: alpine:3.18
- platform: linux/riscv64
container: alpine:edge
container: edge
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions src/Dockerfile
@@ -1,5 +1,5 @@
ARG CONTAINER="alpine:edge"
FROM ${CONTAINER}
ARG CONTAINER="3.18"
FROM alpine:${CONTAINER}
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETPLATFORM

Expand Down

0 comments on commit 54e87b4

Please sign in to comment.