-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate ci/cd pipelines to github actions and argo cd
- Loading branch information
Prasanna Chiang
committed
Jan 3, 2024
1 parent
6be083f
commit 48479aa
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,14 @@ on: | |
tags: | ||
- '**' | ||
workflow_dispatch: | ||
debug_console: | ||
type: choice | ||
description: 'turn on tmate SSH connection for debugging. (on/off/force)' | ||
default: 'off' | ||
options: | ||
- "on" | ||
- "off" | ||
- "force" | ||
|
||
jobs: | ||
cancel: | ||
|
@@ -25,6 +33,7 @@ jobs: | |
if: ${{ github.ref == 'refs/heads/master' }} | ||
with: | ||
fetch-depth: 50 | ||
token: ${{ secrets.QUID_BOT_TOKEN }} | ||
|
||
- name: Checkout Non-Master | ||
uses: actions/checkout@v4 | ||
|
@@ -71,6 +80,10 @@ jobs: | |
run: | | ||
export GITHUB_NAME=quid-bot | ||
export [email protected] | ||
export PAT=${{ secrets.PAT }} | ||
export QUID_BOT_TOKEN=${{ secrets.QUID_BOT_TOKEN }} | ||
export AUTOMATED_WRITE_AUTH=${{ secrets.AUTOMATED_WRITE_AUTH }} | ||
bash scripts/deploy.sh | ||
- name: Setup tmate session | ||
if: ${{ (failure() && inputs.debug_console == 'on') || inputs.debug_console == 'force' }} | ||
uses: mxschmitt/action-tmate@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters