From d6b6b617d5456554f8f1bbbae4a1bfe35c3f566f Mon Sep 17 00:00:00 2001 From: Kim Tore Jensen Date: Tue, 24 Aug 2021 14:35:52 +0200 Subject: [PATCH] deploy only as part of nais-yaml --- .github/workflows/deploy.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f6d31ab..13f651d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,10 +27,20 @@ jobs: - name: Push latest docker image if: github.ref == 'refs/heads/master' run: docker push ${{ env.image_base }}:latest - - uses: nais/deploy/actions/deploy@v1 - if: github.ref == 'refs/heads/master' - env: - APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} - CLUSTER: dev-gcp - RESOURCE: .nais/nais.yml - VAR: image=${{ env.image_base }}:${{ env.VERSION }} + - name: Checkout nais-yaml + uses: actions/checkout@v2 + with: + repository: navikt/nais-yaml + token: ${{ secrets.NAIS_YAML_TOKEN }} + path: nais-yaml + - name: Update nais-yaml + run: | + cd nais-yaml + git config user.name "NAIS deploy pipeline" + git config user.email "aura@nav.no" + sed -E -i "s#wonderwall_image:.+#wonderwall_image: ${{ env.image_base }}:${{ env.VERSION }}#" vars/global.yaml + git add . + git --no-pager diff --cached + git status + git commit -a -m "Bump Wonderwall image in Naiserator configuration to version ${version}" + git push