-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.26 KB
/
publish-frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Publish frontend
on:
push:
branches: [ master, feature/* ]
paths:
- 'frontend/**'
- '.github/workflows/publish-frontend.yml'
jobs:
publish:
name: Build and Publish Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: frontend/
file: frontend/Dockerfile
platforms: linux/amd64
push: true
pull: true
tags: akop/home-system-frontend:latest
deploy:
name: Deploy frontend
runs-on: ubuntu-latest
needs: publish
steps:
- uses: actions/checkout@v4
- uses: ./deploy/connect-with-wireguard
- name: Deploy
uses: WyriHaximus/github-action-helm3@v3
with:
exec: echo '${{ secrets.VALUES_YAML_HOME_SYSTEM_FRONTEND }}' | helm upgrade akops-home-frontend ./deploy/frontend --install --wait --atomic --values -
kubeconfig: '${{ secrets.K8S_CONF_AKOP_ONLINE }}'