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
|
- 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue