mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
Build Docker images using buildx
This commit is contained in:
@@ -1,34 +1,38 @@
|
|||||||
steps:
|
steps:
|
||||||
|
- id: docker_buildx
|
||||||
|
name: 'docker'
|
||||||
|
args: ['buildx', 'create', '--driver', 'docker-container', '--name', 'container', '--use']
|
||||||
|
waitFor: ["-"]
|
||||||
|
|
||||||
- id: 'docker_amd64'
|
- id: 'docker_amd64'
|
||||||
name: 'docker'
|
name: 'docker'
|
||||||
entrypoint: 'sh'
|
|
||||||
args:
|
args:
|
||||||
- '-c'
|
- 'buildx'
|
||||||
- |
|
- 'build'
|
||||||
docker build \
|
- '-t'
|
||||||
-t darthsim/imgproxy:$TAG_NAME-amd64 \
|
- 'darthsim/imgproxy:$TAG_NAME-amd64'
|
||||||
-f docker/Dockerfile \
|
- '-f'
|
||||||
--platform=linux/amd64 \
|
- 'docker/Dockerfile'
|
||||||
.
|
- '--platform=linux/amd64'
|
||||||
|
- '.'
|
||||||
env:
|
env:
|
||||||
- DOCKER_BUILDKIT=1
|
- DOCKER_BUILDKIT=1
|
||||||
waitFor: ["-"]
|
waitFor: ["docker_buildx"]
|
||||||
|
|
||||||
- id: 'docker_arm64'
|
- id: 'docker_arm64'
|
||||||
name: 'docker'
|
name: 'docker'
|
||||||
entrypoint: 'sh'
|
|
||||||
args:
|
args:
|
||||||
- '-c'
|
- 'buildx'
|
||||||
- |
|
- 'build'
|
||||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes \
|
- '-t'
|
||||||
&& docker build \
|
- 'darthsim/imgproxy:$TAG_NAME-amd64'
|
||||||
-t darthsim/imgproxy:$TAG_NAME-arm64 \
|
- '-f'
|
||||||
-f docker/Dockerfile \
|
- 'docker/Dockerfile'
|
||||||
--platform=linux/arm64/v8 \
|
- '--platform=linux/arm64/v8'
|
||||||
.
|
- '.'
|
||||||
env:
|
env:
|
||||||
- DOCKER_BUILDKIT=1
|
- DOCKER_BUILDKIT=1
|
||||||
waitFor: ["-"]
|
waitFor: ["docker_buildx"]
|
||||||
|
|
||||||
- id: 'push'
|
- id: 'push'
|
||||||
name: 'docker'
|
name: 'docker'
|
||||||
|
Reference in New Issue
Block a user