Skip to content

Commit

Permalink
feat: add cdeployment caller workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
victorggonzalez committed Jul 11, 2022
1 parent 64c967b commit ce8d488
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cdeployment-s3-caller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to production environment

# Controls when the action will run
on:
# Triggers the workflow on repository-dispatch event
repository_dispatch:
types: [production-deployment]

# This workflow is made up of one job that calls the reusable workflow in graasp-deploy
jobs:
graasp-deploy-s3-workflow:
# Replace with repository name
name: Graasp Builder
# Replace 'main' with the hash of a commit, so it points to an specific version of the reusable workflow that is used
# Reference reusable workflow file. Using the commit SHA is the safest for stability and security
uses: graasp/graasp-deploy/.github/workflows/cdeployment-s3.yml@5976045215b3db442504fdfecf3255fcb5d96fab
# Replace input build-folder if needed.
with:
build-folder: 'build'
tag: ${{ github.event.client_payload.tag }}
# Insert required secrets based on repository with the following format: ${{ secrets.SECRET_NAME }}
secrets:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_PROD }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PROD }}
aws-region: ${{ secrets.AWS_REGION_PROD }}
aws-s3-bucket-name: ${{ secrets.AWS_S3_BUCKET_NAME_GRAASP_COMPOSE_PROD }}
cloudfront-distribution-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_GRAASP_COMPOSE_PROD }}
api-host: ${{ secrets.REACT_APP_API_HOST_PROD }}
show-notifications: ${{ secrets.REACT_APP_SHOW_NOTIFICATIONS }}
authentication-host: ${{ secrets.REACT_APP_AUTHENTICATION_HOST_PROD }}
graasp-perform-host: ${{ secrets.REACT_APP_GRAASP_PERFORM_HOST_PROD }}
graasp-explorer-host: ${{ secrets.REACT_APP_GRAASP_EXPLORE_HOST_PROD }}
graasp-analyzer-host: ${{ secrets.REACT_APP_GRAASP_ANALYZER_HOST_PROD }}
ga-measurement-id: ${{ secrets.REACT_APP_GA_MEASUREMENT_ID_PROD }}
hidden-item-tag-id: ${{ secrets.REACT_APP_HIDDEN_ITEM_TAG_ID_PROD }}
domain: ${{ secrets.REACT_APP_DOMAIN_PROD }}

0 comments on commit ce8d488

Please sign in to comment.