Skip to content

Commit

Permalink
commit image tag back to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
berekuk committed Nov 1, 2024
1 parent b941366 commit a15705d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,12 @@ jobs:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

- name: Commit new image tag
run: |
sed -i "s/^ tag:.*/ tag: sha-${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}/" ./ops/chart/values.yaml
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add .
git commit -m 'Update image tag'
git push origin ${{ github.ref_name }}
8 changes: 2 additions & 6 deletions ops/chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# To deploy Metaforecast as a Kubernetes chart, you need to provide a valid image.
# QURI doesn't have a public container registry, so you'll have to build the image yourself (from the `ops/Dockerfile` in this repo).
# At QURI, we use a private container registry, and do builds with Argo Workflows.
image:
pullSecret: '' # name of kubernetes secret that provides access to the private container registry
name: '' # full name of the image - override this
tag: '' # tag of the image - override this
name: ghcr.io/quantified-uncertainty/metaforecast
tag: ''

# Secret; you should create this in your k8s cluster.
envSecret: metaforecast-env
Expand Down

0 comments on commit a15705d

Please sign in to comment.