Skip to content

push compressed file to s3 instead #10

push compressed file to s3 instead

push compressed file to s3 instead #10

name: Compress Cookbooks
on: [push]
jobs:
compress:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Compress Cookbooks
run: tar --exclude='cookbooks.tar.gz' -czvf cookbooks.tar.gz -C ${{ github.workspace }} .
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Upload to S3
run: aws s3 sync cookbooks.tar.gz s3://ssm.jumbledev.com/cookbooks.tar.gz