Skip to content

feat: #661 Remove CodeCommit WIP: test GH deploy action #6

feat: #661 Remove CodeCommit WIP: test GH deploy action

feat: #661 Remove CodeCommit WIP: test GH deploy action #6

Workflow file for this run

name: "Deploy to QA"
concurrency: QA
on:
push:
branches: ['master', 'feat/661-remove-code-commit']
workflow_dispatch:
jobs:
deployment:
runs-on: ubuntu-latest
environment: QA
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: 'true'
- uses: ./.github/workflows/actions/deploy
with:
environment-name: 'QA'
trigger-url: ${{ secrets.SB_DEPLOY_TRIGGER_URL }}
trigger-secret: ${{ secrets.SB_DEPLOY_TRIGGER_SECRET }}
# - shell: bash
# env:
# CODE_COMMIT_REPO: ${{ secrets.CODE_COMMIT_REPO }}
# if: env.CODE_COMMIT_REPO != ''
# run: |
# git remote add codecommit "$CODE_COMMIT_REPO"
# git push -u codecommit ${GITHUB_REF#refs/heads/} --force
# git push codecommit --tags
# - name: Call Deploy Trigger Endpoint
# env:
# SB_DEPLOY_TRIGGER_URL: ${{ vars.SB_DEPLOY_TRIGGER_URL }}
# SB_DEPLOY_TRIGGER_SECRET: ${{ secrets.SB_DEPLOY_TRIGGER_SECRET }}
# SB_DEPLOY_STAGE: ${{ vars.SB_DEPLOY_STAGE }}
# run: |
# curl -X POST "${SB_DEPLOY_TRIGGER_URL}?secret=$(echo -n $SB_DEPLOY_TRIGGER_SECRET | jq -sRr @uri)" \
# -H "Content-Type: application/json" \
# -d '{
# "referenceName": "'"${GITHUB_REF_NAME}"'",
# "deployTarget": "'"${SB_DEPLOY_STAGE}"'"
# }'