Skip to content

Commit

Permalink
Merge pull request #969 from the-commons-project/remove-qa
Browse files Browse the repository at this point in the history
Remove QA environment since TCP no longer supports
  • Loading branch information
surfdoc authored Sep 18, 2024
2 parents fdcdf5b + 7179285 commit 870ce2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

env:
S3_BUCKET_DEV: shc-verifier-services-dev
S3_BUCKET_TEST: shc-verifier-services-test
S3_BUCKET_PROD: shc-verifier-services-prod
S3_DIR: vci-directory
LOCAL_SOURCE_FILE: vci-issuers.json
Expand Down Expand Up @@ -35,25 +34,6 @@ jobs:
run: |
aws s3 sync . 's3://${{ env.S3_BUCKET_DEV }}/${{ env.S3_DIR }}' --exclude='*' --include='${{ env.LOCAL_SOURCE_FILE }}' --include='${{ env.LOCAL_SOURCE_INCLUDE_LOG_DIR }}'
deployTest:
if: contains(github.ref, 'test')
name: 'Deploy VCI issuers list to TCP test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: 'Configure Test AWS Role'
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.TERRAFORM_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.TERRAFORM_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.REGION }}
role-to-assume: ${{ env.ROLE_TO_ASSUME }}
role-duration-seconds: 1200
role-session-name: ${{ env.ROLE_SESSION_NAME }}
- name: 'Sync issuers file to S3'
run: |
aws s3 sync . 's3://${{ env.S3_BUCKET_TEST }}/${{ env.S3_DIR }}' --exclude='*' --include='${{ env.LOCAL_SOURCE_FILE }}' --include='${{ env.LOCAL_SOURCE_INCLUDE_LOG_DIR }}'
deployProd:
if: contains(github.ref, '-prod')
name: 'Deploy VCI issuers list to TCP production'
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/upload-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
- main
env:
S3_BUCKET_DEV: vci-snapshot-dev
S3_BUCKET_QA: vci-snapshot-preprod
S3_BUCKET_PROD: vci-snapshot-prod
S3_DIR: current-snapshot
ISSUER_FILE: vci-issuers.json
Expand All @@ -25,13 +24,10 @@ jobs:
- bucket: '${S3_BUCKET_DEV}'
assume-role: arn:aws:iam::789379687343:role/GithubECSRole
role-session-name: GithubActionsECSDev
- bucket: '${S3_BUCKET_QA}'
assume-role: arn:aws:iam::496986085600:role/GithubECSRole
role-session-name: GithubActionsECSQA
- bucket: '${S3_BUCKET_PROD}'
assume-role: arn:aws:iam::583457431358:role/GithubECSRole
role-session-name: GithubActionsECSProd
bucket: [ '${S3_BUCKET_DEV}', '${S3_BUCKET_QA}', '${S3_BUCKET_PROD}' ]
bucket: [ '${S3_BUCKET_DEV}', '${S3_BUCKET_PROD}' ]
steps:
- name: "List bucket"
run: |
Expand Down

0 comments on commit 870ce2d

Please sign in to comment.