Skip to content

Commit

Permalink
push compressed file to s3 instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dil07 committed Jan 17, 2024
1 parent 48f9b66 commit ad74bdb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

19 changes: 10 additions & 9 deletions .github/workflows/compress-cookbooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
- name: Compress Cookbooks
run: |
cd ..
tar --exclude='./compressed' -czvf cookbooks.tar.gz -C ${{ github.workspace }} .
mv cookbooks.tar.gz ${{ github.workspace }}/compressed
- name: Commit and push
run: |
git config user.name github-actions
git config user.email [email protected]
git add compressed/cookbooks.tar.gz
git commit -m 'update compressed cookbooks'
git push
tar -czvf cookbooks.tar.gz -C ${{ github.workspace }} .
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
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 cp {{ github.workspace }}/../cookbooks.tar.gz s3://ssm.jumbledev.com/cookbooks.tar.gz

3 changes: 0 additions & 3 deletions compressed/cookbooks.tar.gz

This file was deleted.

0 comments on commit ad74bdb

Please sign in to comment.