1
Fork 0

Revert to enviroinment variables on each step

This commit is contained in:
Korbs 2024-06-10 18:55:00 -04:00
parent 09f52f3b2f
commit 51fae0bebc

View file

@ -14,8 +14,8 @@ platform:
arch: arm64 arch: arm64
steps: steps:
# Set global environment variables. - name: 4get
# https://docs.drone.io/pipeline/environment/syntax/#per-pipeline failure: ignore # If step fails, ignore and move onto next step.
environment: environment:
ARK_USERNAME: ARK_USERNAME:
from_secret: ARK_USERNAME from_secret: ARK_USERNAME
@ -25,78 +25,139 @@ steps:
from_secret: CODEBERG_USERNAME from_secret: CODEBERG_USERNAME
CODEBERG_PASSWORD: CODEBERG_PASSWORD:
from_secret: CODEBERG_PASSWORD from_secret: CODEBERG_PASSWORD
- name: 4get commands:
failure: ignore # If step fails, ignore and move onto next step. - git clone https://ark.sudovanilla.org/korbs/4get/ && cd ./4get/
commands: - echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
- git clone https://ark.sudovanilla.org/korbs/4get/ && cd ./4get/ - docker build -t ark.sudovanilla.org/korbs/4get:arm64 .
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin - docker push ark.sudovanilla.org/korbs/4get:arm64
- docker build -t ark.sudovanilla.org/korbs/4get:arm64 .
- docker push ark.sudovanilla.org/korbs/4get:arm64
- name: Cinny - name: Cinny
failure: ignore # If step fails, ignore and move onto next step. failure: ignore # If step fails, ignore and move onto next step.
commands: environment:
- git clone https://github.com/cinnyapp/cinny && cd ./cinny/ ARK_USERNAME:
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin from_secret: ARK_USERNAME
- docker build -t ark.sudovanilla.org/korbs/cinny:arm64 . ARK_PASSWORD:
- docker push ark.sudovanilla.org/korbs/cinny:arm64 from_secret: ARK_PASSWORD
CODEBERG_USERNAME:
from_secret: CODEBERG_USERNAME
CODEBERG_PASSWORD:
from_secret: CODEBERG_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 - name: Bun
failure: ignore # If step fails, ignore and move onto next step. failure: ignore # If step fails, ignore and move onto next step.
commands: environment:
- git clone https://github.com/oven-sh/bun && cd ./bun/dockerhub/debian-slim/ ARK_USERNAME:
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin from_secret: ARK_USERNAME
- docker build -t ark.sudovanilla.org/korbs/bun:arm64 . ARK_PASSWORD:
- docker push ark.sudovanilla.org/korbs/bun:arm64 from_secret: ARK_PASSWORD
CODEBERG_USERNAME:
from_secret: CODEBERG_USERNAME
CODEBERG_PASSWORD:
from_secret: CODEBERG_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 - name: Hyperpipe
failure: ignore # If step fails, ignore and move onto next step. failure: ignore # If step fails, ignore and move onto next step.
commands: environment:
- git clone https://codeberg.org/Hyperpipe/Hyperpipe && cd ./Hyperpipe/ ARK_USERNAME:
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin from_secret: ARK_USERNAME
- docker build -t ark.sudovanilla.org/korbs/hyperpipe:arm64 . ARK_PASSWORD:
- docker push ark.sudovanilla.org/korbs/hyperpipe:arm64 from_secret: ARK_PASSWORD
CODEBERG_USERNAME:
from_secret: CODEBERG_USERNAME
CODEBERG_PASSWORD:
from_secret: CODEBERG_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 - name: Bin
failure: ignore # If step fails, ignore and move onto next step. failure: ignore # If step fails, ignore and move onto next step.
commands: environment:
- git clone https://github.com/w4/bin && cd ./bin/ ARK_USERNAME:
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin from_secret: ARK_USERNAME
- docker build -t ark.sudovanilla.org/korbs/bin:arm64 . ARK_PASSWORD:
- docker push ark.sudovanilla.org/korbs/bin:arm64 from_secret: ARK_PASSWORD
CODEBERG_USERNAME:
from_secret: CODEBERG_USERNAME
CODEBERG_PASSWORD:
from_secret: CODEBERG_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 - name: Whoogle
failure: ignore # If step fails, ignore and move onto next step. failure: ignore # If step fails, ignore and move onto next step.
commands: environment:
- git clone https://github.com/benbusby/whoogle-search && cd ./whoogle-search/ ARK_USERNAME:
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin from_secret: ARK_USERNAME
- docker build -t ark.sudovanilla.org/korbs/whoogle:arm64 . ARK_PASSWORD:
- docker push ark.sudovanilla.org/korbs/whoogle:arm64 from_secret: ARK_PASSWORD
CODEBERG_USERNAME:
from_secret: CODEBERG_USERNAME
CODEBERG_PASSWORD:
from_secret: CODEBERG_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" - name: "Araa Search"
failure: ignore # If step fails, ignore and move onto next step. failure: ignore # If step fails, ignore and move onto next step.
commands: environment:
- git clone https://github.com/Extravi/araa-search && cd ./araa-search/ ARK_USERNAME:
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin from_secret: ARK_USERNAME
- cp alpine-based.dockerfile Dockerfile # yeah no ARK_PASSWORD:
- docker build -t ark.sudovanilla.org/korbs/araa-search:arm64 . from_secret: ARK_PASSWORD
- docker push ark.sudovanilla.org/korbs/araa-search:arm64 CODEBERG_USERNAME:
from_secret: CODEBERG_USERNAME
CODEBERG_PASSWORD:
from_secret: CODEBERG_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 - name: Poke
failure: ignore # If step fails, ignore and move onto next step. failure: ignore # If step fails, ignore and move onto next step.
commands: environment:
- git clone https://codeberg.org/ashley/poke && cd ./poke/ ARK_USERNAME:
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin from_secret: ARK_USERNAME
- echo $CODEBERG_PASSWORD | docker login codeberg.org --username $CODEBERG_USERNAME --password-stdin ARK_PASSWORD:
- docker build -t codeberg.org/korbs/poke:arm64 . from_secret: ARK_PASSWORD
- docker build -t ark.sudovanilla.org/korbs/poke:arm64 . CODEBERG_USERNAME:
- docker push codeberg.org/korbs/poke:arm64 from_secret: CODEBERG_USERNAME
- docker push codeberg.org/korbs/poke:arm64 CODEBERG_PASSWORD:
from_secret: CODEBERG_PASSWORD
commands:
- git clone https://codeberg.org/ashley/poke && cd ./poke/
- echo $ARK_PASSWORD | docker login ark.sudovanilla.org --username $ARK_USERNAME --password-stdin
- echo $CODEBERG_PASSWORD | docker login codeberg.org --username $CODEBERG_USERNAME --password-stdin
- docker build -t codeberg.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
# If a commit is pushed, run the pipeline. # If a commit is pushed, run the pipeline.
# trigger: trigger:
# event: event:
# include: include:
# - push - push
# exclude: exclude:
# - pull_request - pull_request