from harness to gitea maybe less secrets
This commit is contained in:
23
.gitea/workflows/builder.yaml
Normal file
23
.gitea/workflows/builder.yaml
Normal 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"
|
||||
28
.gitea/workflows/cicd.yaml
Normal file
28
.gitea/workflows/cicd.yaml
Normal 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
|
||||
Reference in New Issue
Block a user