From 33a123fdeab59366270001c3ea4d53b271a5638e Mon Sep 17 00:00:00 2001 From: dil07 Date: Tue, 16 Jan 2024 17:35:48 -0500 Subject: [PATCH] push compressed file to s3 instead --- .gitattributes | 1 - .github/workflows/compress-cookbooks.yml | 20 +++++++++++--------- compressed/cookbooks.tar.gz | 3 --- 3 files changed, 11 insertions(+), 13 deletions(-) delete mode 100644 .gitattributes delete mode 100644 compressed/cookbooks.tar.gz diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 920a6cf2..00000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -compressed/*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/compress-cookbooks.yml b/.github/workflows/compress-cookbooks.yml index e8cad93c..c28ed86a 100644 --- a/.github/workflows/compress-cookbooks.yml +++ b/.github/workflows/compress-cookbooks.yml @@ -10,12 +10,14 @@ 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 github-actions@github.com - git add compressed/cookbooks.tar.gz - git commit -m 'update compressed cookbooks' - git push + tar -czvf cookbooks.tar.gz -C ${{ github.workspace }} . + mv cookbooks.tar.gz ${{ 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 sync cookbooks.tar.gz s3://ssm.jumbledev.com/cookbooks.tar.gz + diff --git a/compressed/cookbooks.tar.gz b/compressed/cookbooks.tar.gz deleted file mode 100644 index 9ca27894..00000000 --- a/compressed/cookbooks.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bc7214b24a12dfaf8904e24e6daacf18aa04d68f7775a54fbb0f684001f8842 -size 116159095