1
Fork 0
docker-build-automation/.drone.yml

35 lines
No EOL
1.1 KiB
YAML

kind: pipeline
type: exec
name: Build and Push Docker Image
platform:
os: linux
arch: arm64
trigger:
event:
- cron
- push
steps:
- name: Build
environment:
ARK_USERNAME:
from_secret: ARK_USERNAME
ARK_PASSWORD:
from_secret: ARK_PASSWORD
commands:
# Git Clone 4Get Mirror
- git clone https://ark.sudovanilla.org/korbs/4get/ && cd 4get
# Login to SudoVanilla Ark, Codeberg, and Quay in Docker
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
- echo $CODEBERG_PASSWORD | docker login ark.sudovanilla.org --username $CODEBERG_USERNAME --password-stdin
- echo $QUAY_PASSWORD | docker login ark.sudovanilla.org --username $QUAY_USERNAME --password-stdin
# Build Images
- docker build -t ark.sudovanilla.org/korbs/4get:arm64 .
- docker build -t codeberg.org/korbs/4get:arm64 .
- docker build -t quay.io/sudovanilla/4get:arm64 .
# Push Images
- docker push ark.sudovanilla.org/korbs/4get:arm64
- docker push codeberg.org/korbs/4get:arm64
- docker push quay.io/sudovanilla/4get:arm64