Skip to content

Commit

Permalink
Merge pull request #184 from quid/chore/QUID-28018-migrate-ci-cd-pipe…
Browse files Browse the repository at this point in the history
…lines-to-github-actions-and-argo-cd

chore: migrate ci/cd pipelines to github actions and argo cd
  • Loading branch information
prasannachiang authored Jan 3, 2024
2 parents 55ce469 + 8b9bf03 commit af8d258
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .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,10 +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() }}
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 af8d258

Please sign in to comment.