Skip to content

and now?

and now? #11

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
with:
WIREGUARD_CLIENT_PRIVATE_KEY: ${{ secrets.WIREGUARD_CLIENT_PRIVATE_KEY }}
WIREGUARD_CLIENT_IP: ${{ secrets.WIREGUARD_CLIENT_IP }}
WIREGUARD_ALLOWED_IPS: ${{ WIREGUARD_ALLOWED_IPS }}

Check failure on line 44 in .github/workflows/publish-frontend.yml

View workflow run for this annotation

GitHub Actions / Publish frontend

Invalid workflow file

The workflow is not valid. .github/workflows/publish-frontend.yml (Line: 44, Col: 34): Unrecognized named-value: 'WIREGUARD_ALLOWED_IPS'. Located at position 1 within expression: WIREGUARD_ALLOWED_IPS
WIREGUARD_SERVER_PUBLIC_KEY: ${{ secrets.WIREGUARD_SERVER_PUBLIC_KEY }}
WIREGUARD_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 }}'