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

30 lines
1 KiB
YAML
Raw Normal View History

2024-06-07 15:14:32 -05:00
kind: pipeline
type: exec
2024-06-07 15:34:17 -05:00
name: Build and Push (Docker)
2024-06-07 15:14:32 -05:00
platform:
os: linux
arch: arm64
steps:
- name: Build
environment:
ARK_USERNAME:
from_secret: ARK_USERNAME
ARK_PASSWORD:
from_secret: ARK_PASSWORD
commands:
# Git Clone 4Get Mirror
2024-06-07 15:22:40 -05:00
- git clone https://ark.sudovanilla.org/korbs/4get/ && cd 4get
# Login to SudoVanilla Ark, Codeberg, and Quay in Docker
2024-06-07 15:14:32 -05:00
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
2024-06-07 15:36:17 -05:00
- echo $CODEBERG_PASSWORD | docker login codeberg.org --username $CODEBERG_USERNAME --password-stdin
- echo $QUAY_PASSWORD | docker login quay.io --username $QUAY_USERNAME --password-stdin
# Build Images
2024-06-07 15:14:32 -05:00
- 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