functions/.forgejo/workflows/functions.yml
Peter Kurfer 952f0415d1
Some checks failed
functions / build (push) Failing after 7s
feat: initial version of comics API
2025-01-17 10:30:27 +01:00

32 lines
913 B
YAML

name: functions
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup `spin`
uses: fermyon/actions/spin/setup@v1
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
spin registry push --build code.icb4dc0.de/infrastructure/functions/comics
working-directory: comics
- name: Deploy
uses: clowdhaus/argo-cd-action@v2
with:
command: app create functions
options: -f deploy/argo-app.yaml --upsert --server argo-cd-argocd-server.argo-system.svc --auth-token ${{ secrets.ARGOCD_TOKEN }} --plaintext
version: "2.13.3"
- name: Deploy
uses: clowdhaus/argo-cd-action@v2
with:
command: app sync functions
options: --assumeYes --server argo-cd-argocd-server.argo-system.svc --auth-token ${{ secrets.ARGOCD_TOKEN }} --plaintext