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 a21df93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

21 changes: 10 additions & 11 deletions .github/workflows/compress-cookbooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- 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
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

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

This file was deleted.

0 comments on commit a21df93

Please sign in to comment.