name: functions on: - push jobs: build: runs-on: ubuntu-latest steps: - name: Setup `spin` uses: fermyon/actions/spin/setup@v1 - name: Setup Go 1.23.x uses: actions/setup-go@v5 with: go-version: "1.23.x" - name: Setup tinygo uses: acifani/setup-tinygo@v2 with: tinygo-version: "0.35.0" install-binaryen: "false" - name: Login to container registry uses: docker/login-action@v3 with: registry: code.icb4dc0.de username: prskr password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} - 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.2.0 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.2.0 with: command: app sync functions options: --assumeYes --server argo-cd-argocd-server.argo-system.svc --auth-token ${{ secrets.ARGOCD_TOKEN }} --plaintext