Skip to content

Update .github/workflows/s3_upload.yaml #34

Update .github/workflows/s3_upload.yaml

Update .github/workflows/s3_upload.yaml #34

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: S3 Upload
on:
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
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: 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
with:
ecs: true
- 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 }}