CI-terraform-apply-aws-from-master-development #92
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI-terraform-apply-aws-from-master-development' | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: do-terraform-apply-aws-from-master-development | |
# push: | |
# branches: | |
# - master | |
# - 'story-*' # Push events to branches matching story-1001 | |
# - 'releases/**' # Push events to branches matching refs/heads/releases/10 | |
# tags: | |
# - v1 | |
# - v* # Push events to branches matching v1, v1.1, v10 | |
# - v** # Push events to branches matching version/1, v/2 | |
# - v1.* # Push events to tags v1.0, v1.1, and v1.9 | |
# schedule: | |
# - cron: '0 17 * * *' # runs on every day at 5pm UTC | |
jobs: | |
terraform-apply-aws-from-master-development-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 # default 360 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
ref: 'master' | |
fetch-depth: '1' | |
- name: 'Print dependencies' | |
run: | | |
./ci-print-dependencies.sh | |
- name: 'CI terraform init plan apply Command' | |
timeout-minutes: 20 | |
env: | |
ENV_NAME: 'development' | |
AWS_ACCESS_KEY_ID: ${{ secrets.AwsAccessKeyId }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AwsSecretAccessKey }} | |
AWS_DEFAULT_REGION: 'eu-west-2' | |
AWS_DEFAULT_OUTPUT: 'json' | |
run: | | |
./ci-terraform-init-plan-apply.sh |