diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d87724f..40993fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 "ops@quantifieduncertainty.org" + git config --global user.name "GitHub Actions" + git add . + git commit -m 'Update image tag' + git push origin ${{ github.ref_name }} diff --git a/ops/chart/values.yaml b/ops/chart/values.yaml index 9a97815..c2d8439 100644 --- a/ops/chart/values.yaml +++ b/ops/chart/values.yaml @@ -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