Compare commits
6 commits
main
...
fix-deploy
Author | SHA1 | Date | |
---|---|---|---|
54c5e412ea | |||
f767ae9a3f | |||
ff904fb2a8 | |||
37e9865268 | |||
78e70f8c42 | |||
0afd54e6b5 |
1 changed files with 9 additions and 3 deletions
|
@ -4,6 +4,8 @@ jobs:
|
|||
runs-on: docker
|
||||
container:
|
||||
image: library/docker:dind
|
||||
outputs:
|
||||
tags: "${{ steps.meta.outputs.tags }}"
|
||||
steps:
|
||||
- run: apk add --no-cache nodejs git
|
||||
- name: login to container registry
|
||||
|
@ -37,12 +39,16 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: https://git.janky.solutions/JankySolutions/infra.git
|
||||
repository: jankysolutions/infra
|
||||
ref: main
|
||||
- name: deploy
|
||||
run: |
|
||||
set -exuo pipefail
|
||||
tag=$(echo "${{ needs.build-container.outputs.tags }}" | tail -n1)
|
||||
tag=$(echo "${tags}" | tail -n1)
|
||||
sed -i "s#image: git.janky.solutions/finn/matrix-bridge-meshtastic:.*#image: ${tag}#" k8s/meshtastic/statefulset.yaml
|
||||
git config user.email "deployer@janky.solutions"
|
||||
git config user.name "Deployer Robot"
|
||||
git commit -am "bump matrix-bridge-meshtastic to ${tag}"
|
||||
git push
|
||||
|
||||
env:
|
||||
tags: "${{ needs.build-container.outputs.tags }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue