Remove tem. backend deployment from actions and add docker context to frontend build
This commit is contained in:
parent
a4e7b12908
commit
785032812f
@ -42,33 +42,8 @@ jobs:
|
|||||||
- name: Build and Push Latest Docker Image
|
- name: Build and Push Latest Docker Image
|
||||||
id: build-and-push-latest
|
id: build-and-push-latest
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
if: ${{ github.ref == 'refs/heads/docker-deployment' }}
|
||||||
with:
|
with:
|
||||||
file: frontend/Dockerfile
|
file: frontend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.fawkes100.de/timemanager/timemanager-frontend:latest
|
tags: git.fawkes100.de/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/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/master' }}
|
|
||||||
with:
|
|
||||||
file: backend/Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: git.fawkes100.de/timemanager/timemanager-backend:latest
|
|
Loading…
Reference in New Issue
Block a user