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; Add provenance: false for docker/build-push-action #5

Merged
merged 2 commits 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
3 changes: 3 additions & 0 deletions .github/workflows/delopy_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
file: ./docker/alpine-openmpi-gdal/Dockerfile
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: ./docker/alpine-openmpi-gdal-py3/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
${{ env.REGISTRY_ACR }}/${{ env.NAMESPACE_ACR }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-py3
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-alpine-py3
Expand All @@ -103,6 +105,7 @@ jobs:
file: ./docker/debian-miniconda-openmpi-gdal/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
${{ env.REGISTRY_ACR }}/${{ env.NAMESPACE_ACR }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-debian-miniconda
${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-debian-miniconda
Expand Down
2 changes: 1 addition & 1 deletion docker/alpine-openmpi-gdal-py3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#

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

LABEL maintainer="Liang-Jun Zhu <zlj@lreis.ac.cn>"

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

# 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 <zlj@lreis.ac.cn>"

Expand Down
2 changes: 1 addition & 1 deletion docker/debian-miniconda-openmpi-gdal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Use continuumio/miniconda3 as the build and test container, which is based on debian:12.5-slim
# https://github.com/ContinuumIO/docker-images/blob/main/miniconda3/debian/Dockerfile
FROM continuumio/miniconda3 as builder
FROM --platform=$BUILDPLATFORM continuumio/miniconda3 as builder

LABEL maintainer="Liang-Jun Zhu <zlj@lreis.ac.cn>"

Expand Down
Loading