fix(ci): update kustomization at once
This commit is contained in:
parent
fa46890596
commit
fa9d13d45d
2 changed files with 26 additions and 4 deletions
13
.editorconfig
Normal file
13
.editorconfig
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue