Skip to content

Commit

Permalink
Add all the required secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Apr 18, 2024
1 parent a54c86f commit 04fee25
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@ name: Generate Zip
on:
workflow_call:
secrets:
access-token:
description: 'GitHub Access Token'
GH_BOT_TOKEN:
description: 'GitHub Bot Token'
required: true
SLACK_PACKAGING_SECRET:
description: 'Jenkins token for packaging requests'
required: true
S3_BUCKET:
description: 'S3 bucket to place packaged zips'
required: true
S3_ACCESS_KEY_ID:
description: 'S3 access key ID'
required: true
S3_SECRET_ACCESS_KEY:
description: 'S3 Secret Access Key'
required: true
S3_REGION:
description: 'S3 Region'
required: true
S3_ENDPOINT:
description: 'S3 Endpoint'
require: true
inputs:
ref:
description: 'Git Commit Ref (branch, tag, or hash)'
Expand Down Expand Up @@ -75,10 +93,10 @@ jobs:
id: s3_zip_exists
continue-on-error: true
env:
S3_BUCKET: ${{ secrets.PACKAGED_ZIP_BUCKET }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
S3_REGION: ${{ secrets.PACKAGED_ZIP_REGION }}
S3_REGION: ${{ secrets.S3_REGION }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
COMMAND: exists
FILE: "${{ env.ZIP_NAME }}.zip"
Expand Down Expand Up @@ -135,10 +153,10 @@ jobs:
with:
args: --acl public-read --follow-symlinks
env:
S3_BUCKET: ${{ secrets.PACKAGED_ZIP_BUCKET }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
S3_REGION: ${{ secrets.PACKAGED_ZIP_REGION }}
S3_REGION: ${{ secrets.S3_REGION }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
COMMAND: sync
SOURCE_DIR: zip_files
Expand Down

0 comments on commit 04fee25

Please sign in to comment.