Skip to content

Commit

Permalink
try different s3 action
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbeedy committed Jan 25, 2024
1 parent 8a30b6a commit 8b1a6c7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build-and-publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ jobs:
run: |
poetry run image-factory build democluster
- name: Upload democluster image to s3
uses: jakejarvis/s3-sync-action@master
- name: Setup AWS CLI
uses: aws-actions/configure-aws-credentials@v1
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-2' # optional: defaults to us-east-1
SOURCE_DIR: '/opt/actions-runner/_work/democluster/democluster/final' # optional: defaults to entire repository
DEST_DIR: "cloud-images/democluster/latest"
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Sync files to S3 bucket
run: |
aws s3 sync democluster/final \
s3://omnivector-public-assets/cloud-images/democluster/latest \
--acl public-read --follow-symlinks --delete

0 comments on commit 8b1a6c7

Please sign in to comment.