This commit is contained in:
Daniil Gentili 2023-05-29 23:58:06 +02:00
parent 8f0e66643e
commit 48beed8afd
2 changed files with 9 additions and 5 deletions

View File

@ -19,11 +19,7 @@ pipeline:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- 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.sh
when:
event:
- push

8
build.sh Executable file
View File

@ -0,0 +1,8 @@
#!/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