From 07ed92b5cba1d52268a1e74d49573c35f0e13381 Mon Sep 17 00:00:00 2001 From: vdelacruzb Date: Thu, 11 Jan 2024 15:46:55 +0100 Subject: [PATCH] add container to redshift ded yml --- .github/workflows/redshift-ded.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/redshift-ded.yml b/.github/workflows/redshift-ded.yml index c382169f6..0c5e71c2b 100644 --- a/.github/workflows/redshift-ded.yml +++ b/.github/workflows/redshift-ded.yml @@ -18,6 +18,7 @@ jobs: (github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'dedicated_redshift')) || (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'dedicated_redshift')) runs-on: ubuntu-20.04 + container: python:2.7.18-buster timeout-minutes: 20 env: RS_HOST: ${{ secrets.RS_HOST_CD }} @@ -30,19 +31,8 @@ jobs: steps: - name: Checkout repo uses: actions/checkout@v2 - - name: Set RS_PREFIX for releases - if: startsWith(github.event.pull_request.head.ref, 'release/') - run: | - echo "RS_PREFIX=dedicated_release_${{ github.event.pull_request.number }}_" >> $GITHUB_ENV - - name: Set RS_PREFIX for hotfixes - if: startsWith(github.event.pull_request.head.ref, 'hotfix/') - run: | - echo "RS_PREFIX=dedicated_hotfix_${{ github.event.pull_request.number }}_" >> $GITHUB_ENV - - name: Set RS_PREFIX for regular deploys - if: | - !(startsWith(github.event.pull_request.head.ref, 'hotfix/')) && - !(startsWith(github.event.pull_request.head.ref, 'release/')) - run: echo "RS_PREFIX=dedicated_${{ github.event.pull_request.number }}_" >> $GITHUB_ENV + - name: Check diff + uses: technote-space/get-diff-action@v4 - name: Setup node uses: actions/setup-node@v1 with: @@ -58,6 +48,8 @@ jobs: curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip ./aws/install + - name: Setup virtualenv + run: pip install virtualenv==${{ env.VIRTUALENV_VERSION }} - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: