Optimize pipeline and add comments
This commit is contained in:
parent
473aa5451d
commit
db2d7570ba
1 changed files with 39 additions and 48 deletions
177
.drone.yml
177
.drone.yml
|
@ -1,98 +1,14 @@
|
||||||
kind: pipeline
|
kind: pipeline # https://docs.drone.io/pipeline/overview/
|
||||||
type: exec
|
type: exec # https://docs.drone.io/pipeline/exec/overview/
|
||||||
name: Build and Push (Docker)
|
name: Build and Push
|
||||||
|
|
||||||
platform:
|
# Do not clone the Docker Build Automation, it is not needed.
|
||||||
os: linux
|
# https://docs.drone.io/pipeline/exec/syntax/cloning/#custom-logic
|
||||||
arch: arm64
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
steps:
|
# Set global environment variables.
|
||||||
- name: 4get
|
# https://docs.drone.io/pipeline/environment/syntax/#per-pipeline
|
||||||
environment:
|
|
||||||
ARK_USERNAME:
|
|
||||||
from_secret: ARK_USERNAME
|
|
||||||
ARK_PASSWORD:
|
|
||||||
from_secret: ARK_PASSWORD
|
|
||||||
commands:
|
|
||||||
- git clone https://ark.sudovanilla.org/korbs/4get/ && cd ./4get/
|
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
|
||||||
- docker build -t ark.sudovanilla.org/korbs/4get:arm64 .
|
|
||||||
- docker push ark.sudovanilla.org/korbs/4get:arm64
|
|
||||||
|
|
||||||
- name: Cinny
|
|
||||||
environment:
|
|
||||||
ARK_USERNAME:
|
|
||||||
from_secret: ARK_USERNAME
|
|
||||||
ARK_PASSWORD:
|
|
||||||
from_secret: ARK_PASSWORD
|
|
||||||
commands:
|
|
||||||
- git clone https://github.com/cinnyapp/cinny && cd ./cinny/
|
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
|
||||||
- docker build -t ark.sudovanilla.org/korbs/cinny:arm64 .
|
|
||||||
- docker push ark.sudovanilla.org/korbs/cinny:arm64
|
|
||||||
|
|
||||||
- name: Bun
|
|
||||||
environment:
|
|
||||||
ARK_USERNAME:
|
|
||||||
from_secret: ARK_USERNAME
|
|
||||||
ARK_PASSWORD:
|
|
||||||
from_secret: ARK_PASSWORD
|
|
||||||
commands:
|
|
||||||
- git clone https://github.com/oven-sh/bun && cd ./bun/dockerhub/debian-slim/
|
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
|
||||||
- docker build -t ark.sudovanilla.org/korbs/bun:arm64 .
|
|
||||||
- docker push ark.sudovanilla.org/korbs/bun:arm64
|
|
||||||
|
|
||||||
- name: Hyperpipe
|
|
||||||
environment:
|
|
||||||
ARK_USERNAME:
|
|
||||||
from_secret: ARK_USERNAME
|
|
||||||
ARK_PASSWORD:
|
|
||||||
from_secret: ARK_PASSWORD
|
|
||||||
commands:
|
|
||||||
- git clone https://codeberg.org/Hyperpipe/Hyperpipe && cd ./Hyperpipe/
|
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
|
||||||
- docker build -t ark.sudovanilla.org/korbs/hyperpipe:arm64 .
|
|
||||||
- docker push ark.sudovanilla.org/korbs/hyperpipe:arm64
|
|
||||||
|
|
||||||
- name: Bin
|
|
||||||
environment:
|
|
||||||
ARK_USERNAME:
|
|
||||||
from_secret: ARK_USERNAME
|
|
||||||
ARK_PASSWORD:
|
|
||||||
from_secret: ARK_PASSWORD
|
|
||||||
commands:
|
|
||||||
- git clone https://github.com/w4/bin && cd ./bin/
|
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
|
||||||
- docker build -t ark.sudovanilla.org/korbs/bin:arm64 .
|
|
||||||
- docker push ark.sudovanilla.org/korbs/bin:arm64
|
|
||||||
|
|
||||||
- name: Whoogle
|
|
||||||
environment:
|
|
||||||
ARK_USERNAME:
|
|
||||||
from_secret: ARK_USERNAME
|
|
||||||
ARK_PASSWORD:
|
|
||||||
from_secret: ARK_PASSWORD
|
|
||||||
commands:
|
|
||||||
- git clone https://github.com/benbusby/whoogle-search && cd ./whoogle-search/
|
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
|
||||||
- docker build -t ark.sudovanilla.org/korbs/whoogle:arm64 .
|
|
||||||
- docker push ark.sudovanilla.org/korbs/whoogle:arm64
|
|
||||||
|
|
||||||
- name: "Araa Search"
|
|
||||||
environment:
|
|
||||||
ARK_USERNAME:
|
|
||||||
from_secret: ARK_USERNAME
|
|
||||||
ARK_PASSWORD:
|
|
||||||
from_secret: ARK_PASSWORD
|
|
||||||
commands:
|
|
||||||
- git clone https://github.com/Extravi/araa-search && cd ./araa-search/
|
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
|
||||||
- cp alpine-based.dockerfile Dockerfile # yeah no
|
|
||||||
- docker build -t ark.sudovanilla.org/korbs/araa-search:arm64 .
|
|
||||||
- docker push ark.sudovanilla.org/korbs/araa-search:arm64
|
|
||||||
|
|
||||||
- name: Poke
|
|
||||||
environment:
|
environment:
|
||||||
ARK_USERNAME:
|
ARK_USERNAME:
|
||||||
from_secret: ARK_USERNAME
|
from_secret: ARK_USERNAME
|
||||||
|
@ -102,6 +18,73 @@ steps:
|
||||||
from_secret: CODEBERG_USERNAME
|
from_secret: CODEBERG_USERNAME
|
||||||
CODEBERG_PASSWORD:
|
CODEBERG_PASSWORD:
|
||||||
from_secret: CODEBERG_PASSWORD
|
from_secret: CODEBERG_PASSWORD
|
||||||
|
|
||||||
|
# Set Platform
|
||||||
|
# https://docs.drone.io/pipeline/exec/syntax/platform/
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 4get
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
|
commands:
|
||||||
|
- git clone https://ark.sudovanilla.org/korbs/4get/ && cd ./4get/
|
||||||
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
- docker build -t ark.sudovanilla.org/korbs/4get:arm64 .
|
||||||
|
- docker push ark.sudovanilla.org/korbs/4get:arm64
|
||||||
|
|
||||||
|
- name: Cinny
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
|
commands:
|
||||||
|
- git clone https://github.com/cinnyapp/cinny && cd ./cinny/
|
||||||
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
- docker build -t ark.sudovanilla.org/korbs/cinny:arm64 .
|
||||||
|
- docker push ark.sudovanilla.org/korbs/cinny:arm64
|
||||||
|
|
||||||
|
- name: Bun
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
|
commands:
|
||||||
|
- git clone https://github.com/oven-sh/bun && cd ./bun/dockerhub/debian-slim/
|
||||||
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
- docker build -t ark.sudovanilla.org/korbs/bun:arm64 .
|
||||||
|
- docker push ark.sudovanilla.org/korbs/bun:arm64
|
||||||
|
|
||||||
|
- name: Hyperpipe
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
|
commands:
|
||||||
|
- git clone https://codeberg.org/Hyperpipe/Hyperpipe && cd ./Hyperpipe/
|
||||||
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
- docker build -t ark.sudovanilla.org/korbs/hyperpipe:arm64 .
|
||||||
|
- docker push ark.sudovanilla.org/korbs/hyperpipe:arm64
|
||||||
|
|
||||||
|
- name: Bin
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
|
commands:
|
||||||
|
- git clone https://github.com/w4/bin && cd ./bin/
|
||||||
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
- docker build -t ark.sudovanilla.org/korbs/bin:arm64 .
|
||||||
|
- docker push ark.sudovanilla.org/korbs/bin:arm64
|
||||||
|
|
||||||
|
- name: Whoogle
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
|
commands:
|
||||||
|
- git clone https://github.com/benbusby/whoogle-search && cd ./whoogle-search/
|
||||||
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
- docker build -t ark.sudovanilla.org/korbs/whoogle:arm64 .
|
||||||
|
- docker push ark.sudovanilla.org/korbs/whoogle:arm64
|
||||||
|
|
||||||
|
- name: "Araa Search"
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
|
commands:
|
||||||
|
- git clone https://github.com/Extravi/araa-search && cd ./araa-search/
|
||||||
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
- cp alpine-based.dockerfile Dockerfile # yeah no
|
||||||
|
- docker build -t ark.sudovanilla.org/korbs/araa-search:arm64 .
|
||||||
|
- docker push ark.sudovanilla.org/korbs/araa-search:arm64
|
||||||
|
|
||||||
|
- name: Poke
|
||||||
|
failure: ignore # If step fails, ignore and move onto next step.
|
||||||
commands:
|
commands:
|
||||||
- git clone https://codeberg.org/ashley/poke && cd ./poke/
|
- git clone https://codeberg.org/ashley/poke && cd ./poke/
|
||||||
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
|
||||||
|
@ -110,3 +93,11 @@ steps:
|
||||||
- docker build -t ark.sudovanilla.org/korbs/poke:arm64 .
|
- docker build -t ark.sudovanilla.org/korbs/poke:arm64 .
|
||||||
- docker push codeberg.org/korbs/poke:arm64
|
- docker push codeberg.org/korbs/poke:arm64
|
||||||
- docker push codeberg.org/korbs/poke:arm64
|
- docker push codeberg.org/korbs/poke:arm64
|
||||||
|
|
||||||
|
# If a commit is pushed, run the pipeline.
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
||||||
|
|
Loading…
Reference in a new issue