Skip to content

Commit

Permalink
Update .github/workflows/s3_upload.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Jan 23, 2025
1 parent b00d739 commit d7d5e48
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/s3_upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit d7d5e48

Please sign in to comment.