Files
docker-deluge-openvpn/.drone.yml
Beatrice Dellacà af7484183c
Some checks failed
continuous-integration/drone/push Build is failing
fix arch
2025-03-25 03:20:50 +01:00

49 lines
1.1 KiB
YAML

kind: pipeline
type: docker
name: build
platform:
os: linux
arch: arm64
trigger:
event:
- push
steps:
- name: docker-login
image: docker:20.10.16-dind
privileged: true
environment:
DOCKER_BUILDKIT: 1
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- name: create-builder
image: docker:20.10.16-dind
privileged: true
environment:
DOCKER_BUILDKIT: 1
commands:
- docker buildx create --use --name multi-builder || docker buildx use multi-builder
- name: bootstrap
image: docker:20.10.16-dind
privileged: true
environment:
DOCKER_BUILDKIT: 1
commands:
- docker buildx inspect --bootstrap
- name: build-push
image: docker:20.10.16-dind
privileged: true
environment:
DOCKER_BUILDKIT: 1
DOCKER_USERNAME:
from_secret: docker_username
commands:
- docker buildx build --platform linux/amd64,linux/arm64 -t ${DOCKER_USERNAME}/deluge-openvpn:dev --push .