Update rubrik_cloudout.template #1
Workflow file for this run
This file contains 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: Add Templates to Bucket | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- master | |
paths: | |
- 'rubrik_cloudout.template' | |
- 'rubrik_cloudout_consolidation.template' | |
jobs: | |
if_merged: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
architecture: 'x64' | |
- name: Copy Template | |
env: | |
FILES: "./rubrik_cloudout.template ./rubrik_cloudout_consolidation.template" | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | |
S3_KEY: ${{ secrets.S3_KEY }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
pip install --quiet --no-cache-dir awscli | |
for (FILE in $FILES); do | |
aws s3 cp ${FILE} s3://${S3_BUCKET}/${S3_KEY} | |
done |