diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..fcc1727 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +indent_style = space +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +max_line_length = 120 + +[*.{yml,yaml}] +indent_size = 2 +insert_final_newline = true diff --git a/.forgejo/workflows/functions.yml b/.forgejo/workflows/functions.yml index 91771cd..98a07b5 100644 --- a/.forgejo/workflows/functions.yml +++ b/.forgejo/workflows/functions.yml @@ -45,20 +45,29 @@ jobs: - name: Build run: | spin registry push --build code.icb4dc0.de/infrastructure/functions/${{ matrix.function }}:${{ github.sha }} - working-directory: comics + working-directory: ${{ matrix.function }} + image_refs: + runs-on: ubuntu-latest + needs: + - build + steps: - name: Update image reference run: | - kustomize edit set image ${{ matrix.function }}=code.icb4dc0.de/infrastructure/functions/${{ matrix.function }}:${{ github.sha }} + for func in "comics", "blob-proxy": + do + kustomize edit set image "$func=code.icb4dc0.de/infrastructure/functions/$func:${{ github.sha }}"; + done git add kustomization.yaml - git commit -m "chore(deploy): update ${{ matrix.function }} image reference" - git push || git pull --rebase && git push + git commit -m "chore(deploy): update image references" + git push working-directory: deploy deploy: runs-on: ubuntu-latest needs: - build + - image_refs steps: - name: Checkout uses: actions/checkout@v4