Skip to content

Commit

Permalink
chore(infra): enable auto update (#3598)
Browse files Browse the repository at this point in the history
* chore(infra): enable auto update

* hide repo
  • Loading branch information
schoren authored Feb 7, 2024
1 parent b538623 commit ce2ac34
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- shell: bash
run: |
echo "TAG=sha-$(git rev-parse --short=8 $GITHUB_SHA)" >> $GITHUB_ENV
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
Expand All @@ -225,11 +229,18 @@ jobs:

- name: Deploy
run: |
TAG=sha-$(git rev-parse --short=8 $GITHUB_SHA) \
TAG=${{env.TAG}} \
NAME=tracetest-beta \
CONFIG_FILE=./k8s/tracetest.beta.yaml \
EXPOSE_HOST=beta.tracetest.io \
CERT_NAME=tracetest-beta \
BACKEND_CONFIG=tracetest-beta \
./k8s/deploy.sh
- name: Trigger Infra Update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.INFRA_REPO_PAT }}
repository: ${{ secrets.INFRA_REPO }}
event-type: update-tags
client-payload: '{"repo_name": "tracetest", "new_tag": "${{ env.TAG }}"}'
9 changes: 9 additions & 0 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,12 @@ jobs:
env:
VERSION: ${{ github.ref_name }}

- name: Trigger Infra Update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.INFRA_REPO_PAT }}
repository: ${{ secrets.INFRA_REPO }}
event-type: update-tags
client-payload: '{"repo_name": "tracetest", "new_tag": "${{ github.ref_name}}"}'


8 changes: 8 additions & 0 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ jobs:
ANALYTICS_BE_KEY: ${{ secrets.ANALYTICS_BE_KEY }}
TRACETEST_DEFAULT_CLOUD_ENDPOINT: ${{ secrets.TRACETEST_DEFAULT_CLOUD_ENDPOINT }}

- name: Trigger Infra Update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.INFRA_REPO_PAT }}
repository: ${{ secrets.INFRA_REPO }}
event-type: update-tags
client-payload: '{"repo_name": "tracetest", "new_tag": "${{ github.ref_name}}"}'

helm_chart_version_bump:
name: "Trigger Helm chart appVersion update"
needs: "release"
Expand Down

0 comments on commit ce2ac34

Please sign in to comment.