diff --git a/.github/workflows/s3_upload.yaml b/.github/workflows/s3_upload.yaml index a9ea1fd..02363d2 100644 --- a/.github/workflows/s3_upload.yaml +++ b/.github/workflows/s3_upload.yaml @@ -12,22 +12,28 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: [ docker-image-pipeline ] - env: - AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}" - AWS_SESSION_TOKEN: "${{ secrets.AWS_SESSION_TOKEN }}" - - + runs-on: [ "229685449397" ] + # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 + - uses: CSVD/gh-actions-checkout@v4 + id: checkout + with: + persist-credentials: false - uses: CSVD/gh-actions-setup-node@v3 with: node-version: 16 + - name: AWS Auth + id: aws_auth + uses: CSVD/aws-auth@main + - run: | zip -r docker-image-pipeline.zip * aws s3 cp docker-image-pipeline.zip s3://image-pipeline-assets + env: + AWS_ACCESS_KEY_ID: ${{ steps.aws_auth.outputs.aws_access_key_id }} + AWS_SECRET_ACCESS_KEY: ${{ steps.aws_auth.outputs.aws_secret_access_key }} + AWS_SESSION_TOKEN: ${{ steps.aws_auth.outputs.aws_session_token }}