Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use FROM --platform=$BUILDPLATFORM xxx as builder; #12

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/deploy_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
file: ./Dockerfile-alpine
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
${{ env.REGISTRY_ACR }}/${{ env.NAMESPACE_ACR }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine
Expand All @@ -91,6 +92,7 @@ jobs:
file: ./Dockerfile-alpine-with-gdal
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
${{ env.REGISTRY_ACR }}/${{ env.NAMESPACE_ACR }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-with-gdal
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-with-gdal
Expand All @@ -104,6 +106,7 @@ jobs:
file: ./Dockerfile-alpine-with-mongodb
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
${{ env.REGISTRY_ACR }}/${{ env.NAMESPACE_ACR }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-with-mongodb
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-with-mongodb
Expand All @@ -117,6 +120,7 @@ jobs:
file: ./Dockerfile-alpine-with-gdal-mongodb
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
${{ env.REGISTRY_ACR }}/${{ env.NAMESPACE_ACR }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-with-gdal-mongodb
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-with-gdal-mongodb
Expand Down
2 changes: 1 addition & 1 deletion docker/alpine-with-gdal-mongodb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Copyright 2022-2024 Liang-Jun Zhu <[email protected]>

# Use GDAL image tagged alpine-small-latest as the build and test container
FROM ghcr.io/osgeo/gdal:alpine-small-latest as builder
FROM --platform=$BUILDPLATFORM ghcr.io/osgeo/gdal:alpine-small-latest as builder

LABEL maintainer="Liang-Jun Zhu <[email protected]>"

Expand Down
2 changes: 1 addition & 1 deletion docker/alpine-with-gdal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Copyright 2022-2024 Liang-Jun Zhu <[email protected]>

# Use GDAL image tagged alpine-small-latest as the build and test container
FROM ghcr.io/osgeo/gdal:alpine-small-latest as builder
FROM --platform=$BUILDPLATFORM ghcr.io/osgeo/gdal:alpine-small-latest as builder

LABEL maintainer="Liang-Jun Zhu <[email protected]>"

Expand Down
2 changes: 1 addition & 1 deletion docker/alpine-with-mongodb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Use alpine as the build and test container
ARG ALPINE_VERSION=3.15
FROM alpine:${ALPINE_VERSION} as builder
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} as builder

LABEL maintainer="Liang-Jun Zhu <[email protected]>"

Expand Down
2 changes: 1 addition & 1 deletion docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Use alpine as the build container
ARG ALPINE_VERSION=3.15
FROM alpine:${ALPINE_VERSION} as builder
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} as builder

LABEL maintainer="Liang-Jun Zhu <[email protected]>"

Expand Down
Loading