ci: deploy master to integration environments (#1973)

This commit is contained in:
Travis Groth 2021-03-09 12:13:11 -05:00 committed by GitHub
parent 2f00d2dd72
commit c99ceaef1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,3 +63,32 @@ jobs:
org.opencontainers.image.created=${{ steps.metadata.outputs.timestamp }}
org.opencontainers.image.name=${{ steps.metadata.outputs.name }}
org.opencontainers.image.revision=${{ github.sha }}
deploy:
runs-on: ubuntu-latest
needs: publish
steps:
- name: Checkout Helmfile Repo
uses: actions/checkout@v2
with:
repository: pomerium/helmfile
token: ${{ secrets.APPARITOR_GITHUB_TOKEN }}
- name: Bump psql environment
uses: mikefarah/yq@v4.6.1
with:
cmd: yq eval '.image.tag = "${{ needs.publish.outputs.sha-tag }}"' -i environments/internal-prd/pomerium-master-postgres/values/pomerium.yaml
- name: Bump mysql environment
uses: mikefarah/yq@v4.6.1
with:
cmd: yq eval '.image.tag = "${{ needs.publish.outputs.sha-tag }}"' -i environments/internal-prd/pomerium-master-mysql/values/pomerium.yaml
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: master
commit_message: |
Bump test environment pomerium/pomerium
Image tag: ${{ needs.publish.outputs.sha-tag }}
Source Repo: ${{ github.repository }}@${{ github.sha }}