Add CI workflow and update Docker/.NET configs
This commit is contained in:
@@ -1,53 +0,0 @@
|
|||||||
name: Build & Deploy MinAttest
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: docker
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
|
||||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.theriise.net -u steinhelge --password-stdin
|
|
||||||
|
|
||||||
#
|
|
||||||
# Frontend
|
|
||||||
#
|
|
||||||
- name: Build Frontend
|
|
||||||
run: |
|
|
||||||
docker build -t gitea.theriise.net/steinhelge/minattest-frontend:latest frontend
|
|
||||||
|
|
||||||
- name: Push Frontend
|
|
||||||
run: docker push gitea.theriise.net/steinhelge/minattest-frontend:latest
|
|
||||||
|
|
||||||
#
|
|
||||||
# Backend API
|
|
||||||
#
|
|
||||||
- name: Build API
|
|
||||||
run: |
|
|
||||||
docker build \
|
|
||||||
-t gitea.theriise.net/steinhelge/minattest-api:latest \
|
|
||||||
-f backend/Dockerfile \
|
|
||||||
backend
|
|
||||||
|
|
||||||
- name: Push API
|
|
||||||
run: docker push gitea.theriise.net/steinhelge/minattest-api:latest
|
|
||||||
|
|
||||||
#
|
|
||||||
# App-host (BFF)
|
|
||||||
#
|
|
||||||
- name: Build App Host
|
|
||||||
run: |
|
|
||||||
docker build \
|
|
||||||
-t gitea.theriise.net/steinhelge/minattest-apphost:latest \
|
|
||||||
-f app-host/Dockerfile \
|
|
||||||
app-host
|
|
||||||
|
|
||||||
- name: Push App Host
|
|
||||||
run: docker push gitea.theriise.net/steinhelge/minattest-apphost:latest
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user