wow ... #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- id: wireguard | ||
uses: ./deploy/connect-with-wireguard | ||
with: | ||
client-private-key: ${{ secrets.WIREGUARD_CLIENT_PRIVATE_KEY }} | ||
client-ip: ${{ secrets.WIREGUARD_CLIENT_IP }} | ||
allowed-ips: ${{ secretsWIREGUARD_ALLOWED_IPS }} | ||
Check failure on line 45 in .github/workflows/publish-frontend.yml
|
||
server-public-key: ${{ secrets.WIREGUARD_SERVER_PUBLIC_KEY }} | ||
endpoint: ${{ secrets.WIREGUARD_ENDPOINT }} | ||
- 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 }}' | ||