From 05a4be3c8c38eb5e3a033ecab5552387b3d31899 Mon Sep 17 00:00:00 2001 From: David John Arnold Jr Date: Mon, 21 Apr 2025 10:18:51 -0700 Subject: [PATCH] Create s3_upload.yaml --- .github/workflow/s3_upload.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflow/s3_upload.yaml diff --git a/.github/workflow/s3_upload.yaml b/.github/workflow/s3_upload.yaml new file mode 100644 index 0000000..ec044bf --- /dev/null +++ b/.github/workflow/s3_upload.yaml @@ -0,0 +1,33 @@ +# 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" ] + 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 }}" + + + # 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-setup-node@v3 + with: + node-version: 16 + + - run: | + zip -r docker-image-pipeline.zip * + aws s3 cp docker-image-pipeline.zip s3://csvd-dev-ew-github-actions