Skip to content

Commit

Permalink
chore: migrate ci/cd pipelines to github actions and argo cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasanna Chiang committed Jan 3, 2024
1 parent 6be083f commit 48479aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -71,6 +80,10 @@ jobs:
run: |
export GITHUB_NAME=quid-bot
export GITHUB_EMAIL=infratructure@quid.com
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
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Setup Git user for automatic deploy
git config --global user.email $GITHUB_EMAIL
git config --global user.name $GITHUB_NAME
git remote set-url origin https://${PAT}@github.com/quid/refraction.git
git remote set-url origin https://${QUID_BOT_TOKEN}@github.com/quid/refraction.git

# Lerna can publish only if on master, Travis CI goes in detached state initially
git checkout master
Expand Down

0 comments on commit 48479aa

Please sign in to comment.