added backend build action
This commit is contained in:
30
.gitea/workflows/build-backend.yaml
Normal file
30
.gitea/workflows/build-backend.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: build
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOCKER_IMAGE: git.leon-hoppe.de/leon.hoppe/betteriserv-backend:latest
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-backend:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Login to Repo
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.leon-hoppe.de
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build docker image
|
||||||
|
run: docker build -t ${{ env.DOCKER_IMAGE }} BetterIServ.Backend/
|
||||||
|
|
||||||
|
- name: Push docker image
|
||||||
|
run: docker push ${{ env.DOCKER_IMAGE }}
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
name: build
|
name: build
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_IMAGE: git.leon-hoppe.de/leon.hoppe/betteriserv
|
DOCKER_IMAGE: git.leon-hoppe.de/leon.hoppe/betteriserv-frontend:latest
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: main
|
branches: main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
frontend:
|
build-frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
run: docker build -t ${{ env.DOCKER_IMAGE }}-frontend:latest BetterIServ.Mobile/
|
run: docker build -t ${{ env.DOCKER_IMAGE }} BetterIServ.Mobile/
|
||||||
|
|
||||||
- name: Push docker image
|
- name: Push docker image
|
||||||
run: docker push ${{ env.DOCKER_IMAGE }}-frontend:latest
|
run: docker push ${{ env.DOCKER_IMAGE }}
|
||||||
|
|||||||
Reference in New Issue
Block a user