chore: Update project dependencies.
Some checks failed
Build and Deploy / build-push (push) Has been cancelled
Some checks failed
Build and Deploy / build-push (push) Has been cancelled
This commit is contained in:
49
.gitea/workflows/deploy.yaml
Normal file
49
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
name: Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ vars.GITEA_REGISTRY_URL }}
|
||||
username: ${{ secrets.GITEA_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITEA_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and Push Backend
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: ./backend
|
||||
push: true
|
||||
tags: ${{ vars.GITEA_REGISTRY_URL }}/${{ github.repository }}/backend:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Build and Push Frontend
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: ./frontend
|
||||
push: true
|
||||
tags: ${{ vars.GITEA_REGISTRY_URL }}/${{ github.repository }}/frontend:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
- name: Deploy to K3s
|
||||
uses: actions-hub/kubectl@master
|
||||
env:
|
||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||
with:
|
||||
args: rollout restart deployment/evrak-backend deployment/evrak-frontend
|
||||
Reference in New Issue
Block a user