diff --git a/.github/workflows/tvratings_pipeline.yml b/.github/workflows/tvratings_pipeline.yml index 26e54e8..0782734 100644 --- a/.github/workflows/tvratings_pipeline.yml +++ b/.github/workflows/tvratings_pipeline.yml @@ -1,4 +1,6 @@ name: application pipeline + + on: push: branches: @@ -28,3 +30,21 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.11 + + - name: make-scripts-executable + run: | + chmod +x 'scripts/tvratings_build_test.sh' + + - name: assume-github-actions-role + uses: aws-actions/configure-aws-credentials@v4 + with: + audience: sts.amazonaws.com + aws-region: ${{vars.DEFAULT_AWS_REGION}} + role-to-assume: arn:aws:iam::${{secrets.AWS_ACCOUNT_ID}}:role/${{secrets.PIPELINE_ROLE_NAME}} + + + - name: test-and-build-deployment-archive + shell: bash + env: + AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID}} + run: 'scripts/tvratings_build_test.sh' diff --git a/scripts/tvratings_build_test.sh b/scripts/tvratings_build_test.sh new file mode 100644 index 0000000..43a164b --- /dev/null +++ b/scripts/tvratings_build_test.sh @@ -0,0 +1,2 @@ +echo "to do" +echo $AWS_ACCOUNT_ID \ No newline at end of file