mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 19:06:33 +02:00
ci: deploy releases to test environment (#1916)
This commit is contained in:
parent
5d60cff21e
commit
3c84004c1d
2 changed files with 26 additions and 24 deletions
24
.github/workflows/docker-master.yaml
vendored
24
.github/workflows/docker-master.yaml
vendored
|
@ -63,27 +63,3 @@ jobs:
|
||||||
org.opencontainers.image.created=${{ steps.metadata.outputs.timestamp }}
|
org.opencontainers.image.created=${{ steps.metadata.outputs.timestamp }}
|
||||||
org.opencontainers.image.name=${{ steps.metadata.outputs.name }}
|
org.opencontainers.image.name=${{ steps.metadata.outputs.name }}
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
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 test environment
|
|
||||||
uses: mikefarah/yq@v4.5.1
|
|
||||||
with:
|
|
||||||
cmd: yq eval '.image.tag = "${{ needs.publish.outputs.sha-tag }}"' -i environments/internal-prd/values/pomerium-demo.yaml
|
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
branch: master
|
|
||||||
commit_message: |
|
|
||||||
Bump test environment ${{ needs.publish.outputs.image }}
|
|
||||||
Image tag: ${{ needs.publish.outputs.sha-tag }}
|
|
||||||
Source Repo: ${{ github.repository }}@${{ github.sha }}
|
|
||||||
|
|
26
.github/workflows/release.yaml
vendored
26
.github/workflows/release.yaml
vendored
|
@ -10,6 +10,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
DOCKER_CLI_EXPERIMENTAL: "enabled"
|
||||||
|
outputs:
|
||||||
|
tag: ${{ steps.tagName.outputs.tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -89,3 +91,27 @@ jobs:
|
||||||
|
|
||||||
docker tag gcr.io/pomerium-io/pomerium:${{ steps.tagName.outputs.tag }}-cloudrun gcr.io/pomerium-io/pomerium:latest-cloudrun
|
docker tag gcr.io/pomerium-io/pomerium:${{ steps.tagName.outputs.tag }}-cloudrun gcr.io/pomerium-io/pomerium:latest-cloudrun
|
||||||
docker push gcr.io/pomerium-io/pomerium:latest-cloudrun
|
docker push gcr.io/pomerium-io/pomerium:latest-cloudrun
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: goreleaser
|
||||||
|
steps:
|
||||||
|
- name: Checkout Helmfile Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: pomerium/helmfile
|
||||||
|
token: ${{ secrets.APPARITOR_GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Bump test environment
|
||||||
|
uses: mikefarah/yq@v4.5.1
|
||||||
|
with:
|
||||||
|
cmd: yq eval '.image.tag = "${{ needs.goreleaser.outputs.tag }}"' -i environments/internal-prd/values/pomerium-demo.yaml
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
branch: master
|
||||||
|
commit_message: |
|
||||||
|
Bump test environment pomerium/pomerium
|
||||||
|
Image tag: ${{ needs.goreleaser.outputs.tag }}
|
||||||
|
Source Repo: ${{ github.repository }}@${{ github.sha }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue