docker-deployment #67
@ -28,47 +28,55 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Log into registry at Gitea
|
- name: Log into registry at Gitea
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
with:
|
with:
|
||||||
registry: https://git.fawkes100.de
|
registry: https://git.fawkes100.de
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v2
|
uses: docker/metadata-action@v2
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
with:
|
with:
|
||||||
images: git.fawkes100.de/timemanager/timemanager-frontend
|
images: git.fawkes100.de/sebastian/timemanager/timemanager-frontend
|
||||||
- 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/master' }}
|
||||||
with:
|
with:
|
||||||
|
context: frontend/.
|
||||||
file: frontend/Dockerfile
|
file: frontend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.fawkes100.de/timemanager/timemanager-frontend:latest
|
tags: git.fawkes100.de/sebastian/timemanager/timemanager-frontend:latest
|
||||||
build-and-push-backend:
|
build-and-push-backend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Log into registry at Gitea
|
- name: Log into registry at Gitea
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
with:
|
with:
|
||||||
registry: https://git.fawkes100.de
|
registry: https://git.fawkes100.de
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v2
|
uses: docker/metadata-action@v2
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
with:
|
with:
|
||||||
images: git.fawkes100.de/timemanager/timemanager-backend
|
images: git.fawkes100.de/sebastian/timemanager/timemanager-backend
|
||||||
- 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/master' }}
|
||||||
with:
|
with:
|
||||||
|
context: backend/.
|
||||||
file: backend/Dockerfile
|
file: backend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: git.fawkes100.de/timemanager/timemanager-backend:latest
|
tags: git.fawkes100.de/sebastian/timemanager/timemanager-backend:latest
|
Loading…
Reference in New Issue
Block a user