mirror of
https://github.com/danog/php.git
synced 2024-11-26 11:55:00 +01:00
Cleanup
This commit is contained in:
parent
48beed8afd
commit
364262f4bb
@ -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
|
||||
|
28
build.sh
28
build.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user