Skip to content

Commit

Permalink
Feature: Add multi arch images
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Nov 7, 2023
1 parent b00adfb commit 1c510ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: variants/1.0.3
platforms: linux/amd64
platforms: linux/386,linux/amd64,linux/arm64
push: false
tags: |
${{ github.repository }}:${{ steps.prep-1-0-3.outputs.REF_VARIANT }}
Expand All @@ -122,7 +122,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: variants/1.0.3
platforms: linux/amd64
platforms: linux/386,linux/amd64,linux/arm64
push: true
tags: |
${{ github.repository }}:${{ steps.prep-1-0-3.outputs.REF_VARIANT }}
Expand All @@ -135,7 +135,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: variants/1.0.3
platforms: linux/amd64
platforms: linux/386,linux/amd64,linux/arm64
push: true
tags: |
${{ github.repository }}:${{ steps.prep-1-0-3.outputs.VARIANT }}
Expand Down
3 changes: 1 addition & 2 deletions generate/definitions/VARIANTS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ $VARIANTS = @(
# Metadata object
_metadata = @{
package_version = $variant['package_version']
platforms = 'linux/amd64'
# platforms = 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x'
platforms = 'linux/386,linux/amd64,linux/arm64'
components = $subVariant['components']
job_group_key = $variant['package_version']
}
Expand Down
8 changes: 8 additions & 0 deletions variants/1.0.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ FROM alpine:3.17
RUN set -eux; \
PAGEFIND_EXTENDED_VERSION=v1.0.3; \
case "$( uname -m )" in \
'x86') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v1.0.3/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'x86_64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v1.0.3/pagefind_extended-v1.0.3-x86_64-unknown-linux-musl.tar.gz"; \
SHA256=aec60f1db9fd693986b2c3d6253f98e6710e5046a371fc1c7e3ecc5fc982a95d; \
;; \
'aarch64') \
URL="https://github.com/CloudCannon/pagefind/releases/download/v1.0.3/pagefind_extended-v1.0.3-aarch64-unknown-linux-musl.tar.gz"; \
SHA256=575885fb7086a31b9322b7bba0b0baf57bb2586b1fcc7661a88a73ffe17c8134; \
;; \
*) \
echo "Architecture not supported"; \
exit 1; \
Expand Down

0 comments on commit 1c510ac

Please sign in to comment.