fix(ci): update kustomization at once
Some checks failed
functions / build (blob-proxy) (push) Failing after 1m7s
functions / build (comics) (push) Successful in 1m42s
functions / image_refs (push) Has been skipped
functions / deploy (push) Has been skipped

This commit is contained in:
Peter 2025-01-21 17:48:39 +01:00
parent fa46890596
commit fa9d13d45d
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 26 additions and 4 deletions

13
.editorconfig Normal file
View file

@ -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

View file

@ -45,20 +45,29 @@ jobs:
- name: Build - name: Build
run: | run: |
spin registry push --build code.icb4dc0.de/infrastructure/functions/${{ matrix.function }}:${{ github.sha }} 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 - name: Update image reference
run: | 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 add kustomization.yaml
git commit -m "chore(deploy): update ${{ matrix.function }} image reference" git commit -m "chore(deploy): update image references"
git push || git pull --rebase && git push git push
working-directory: deploy working-directory: deploy
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- build - build
- image_refs
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4