from harness to gitea maybe less secrets

This commit is contained in:
Bel LaPointe
2023-10-29 16:17:42 -06:00
parent 7676e1f443
commit d7b07f8317
3 changed files with 51 additions and 86 deletions

View File

@@ -0,0 +1,23 @@
name: builder
on:
push:
branches:
- main
paths:
- 'Dockerfile.cicd'
jobs:
builder:
name: builder
runs-on: dind
steps:
- name: checkout
uses: actions/checkout@v3
- name: builder
run: |
t=registry-app.inhome.blapointe.com:5001/portfolio/resume/builder:latest
until docker ps; do
sleep 5
done
docker build -t "$t" -f ./Dockerfile.cicd .
docker push "$t"

View File

@@ -0,0 +1,28 @@
name: cicd
on:
push:
branches:
- main
paths:
- 'src/**'
jobs:
cicd:
name: cicd
runs-on: dind
steps:
- name: checkout
uses: actions/checkout@v3
- name: cicd
run: |
set -ueo pipefail
docker run \
--rm \
-it \
-v "$PWD":/mnt \
-w /mnt \
-e FIREBASE_CI_TOKEN="$FIREBASE_CI_TOKEN" \
-e GITLAB_PAT="$GITLAB_PAT" \
registry-app.inhome.blapointe.com:5001/portfolio/resume/builder:latest \
bash ./build/firebase.sh