Skip to content

Commit

Permalink
Fix S3 upload task
Browse files Browse the repository at this point in the history
  • Loading branch information
noboruma committed Nov 8, 2023
1 parent 4d33645 commit 9b0d8db
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-publish-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
aws_key_id: ${{secrets.AWS_KEY_ID}}
aws_secret_access_key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws-region: us-east-2

- name: Build agent binaries
run: |
make agent
Expand All @@ -34,10 +41,4 @@ jobs:
docker rm -v $id
- name: Upload to S3
uses: shallwefootball/s3-upload-action@master
id: S3
with:
aws_key_id: ${{secrets.AWS_KEY_ID}}
aws_secret_access_key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: deepfence-tm-binaries
source_dir: /tmp/binaries
run: aws s3 sync /tmp/binaries s3://deepfnece-tm-binaries

0 comments on commit 9b0d8db

Please sign in to comment.