diff --git a/.forgejo/workflows/container-build.yaml b/.forgejo/workflows/container-build.yaml index cc4495b..91efb5d 100644 --- a/.forgejo/workflows/container-build.yaml +++ b/.forgejo/workflows/container-build.yaml @@ -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 }}"