Build backend automatic
All checks were successful
Java CI with Maven / test (push) Successful in 34s
Java CI with Maven / build-and-push-frontend (push) Successful in 2m5s
Java CI with Maven / build-and-push-backend (push) Successful in 2m5s

This commit is contained in:
Sebastian Böckelmann 2023-11-14 08:44:31 +01:00
parent e4daee49a1
commit 7d63cd19cb

View File

@ -48,3 +48,29 @@ jobs:
file: frontend/Dockerfile file: frontend/Dockerfile
push: true push: true
tags: git.fawkes100.de/sebastian/timemanager/timemanager-frontend:latest tags: git.fawkes100.de/sebastian/timemanager/timemanager-frontend:latest
build-and-push-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log into registry at Gitea
uses: docker/login-action@v2
with:
registry: https://git.fawkes100.de
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v2
with:
images: git.fawkes100.de/sebastian/timemanager/timemanager-backend
- name: Build and Push Latest Docker Image
id: build-and-push-latest
uses: docker/build-push-action@v4
if: ${{ github.ref == 'refs/heads/docker-deployment' }}
with:
context: backend/.
file: backend/Dockerfile
push: true
tags: git.fawkes100.de/sebastian/timemanager/timemanager-backend:latest