This commit is contained in:
Daniil Gentili 2023-05-30 00:28:49 +02:00
parent 48beed8afd
commit 364262f4bb
2 changed files with 25 additions and 47 deletions

View File

@ -13,7 +13,7 @@ clone:
tags: true
pipeline:
alpine-cli:
build:
image: docker:cli
secrets: [docker_username, docker_password]
volumes:
@ -24,45 +24,3 @@ pipeline:
event:
- push
sid-cli:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/php
dockerfile: "8.2/sid/cli/Dockerfile"
platforms: linux/riscv64
tag: 8.2
cache_from: type=registry,ref=danog/php:8.2
cache_to: type=inline
when:
event:
- push
alpine-fpm:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/php
dockerfile: "8.2/alpineedge/fpm/Dockerfile"
platforms: linux/riscv64
tag: 8.2-fpm-alpine
cache_from: type=registry,ref=danog/php:8.2-fpm-alpine
cache_to: type=inline
when:
event:
- push
sid-fpm:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: danog/php
dockerfile: "8.2/sid/fpm/Dockerfile"
platforms: linux/riscv64
tag: 8.2-fpm
cache_from: type=registry,ref=danog/php:8.2-fpm
cache_to: type=inline
when:
event:
- push

View File

@ -1,8 +1,28 @@
#!/bin/sh -e
docker login --username "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD"
cd "8.2/alpineedge/cli/"
docker buildx create --use --name wp --driver remote tcp://192.168.69.206:1234
docker buildx build --platform linux/riscv64 . -t danog/php:8.2-alpine
docker push danog/php:8.2-alpine
build() {
cd "$1"
docker buildx build --platform linux/riscv64 . -t danog/php:$2 --cache-from danog/php:$2 --cache-to type=inline
docker push danog/php:$2
cd "$base"
}
cd 8.2
base=$PWD
build alpineedge/cli/ 8.2-alpine
build alpineedge/fpm/ 8.2-fpm-alpine
build sid/cli/ 8.2
build sid/fpm/ 8.2-fpm
docker tag danog/php:8.2 danog/php:8.2-debian
docker tag danog/php:8.2-fpm danog/php:8.2-fpm-debian
docker push danog/php:8.2-debian
docker push danog/php:8.2-fpm-debian