Skip to content

Commit

Permalink
Merge pull request #141 from port-labs/PORT-8033-create-bucket-to-sto…
Browse files Browse the repository at this point in the history
…re-tf-provider-module-assets

Add workflow to backup module assets
  • Loading branch information
MPTG94 authored May 9, 2024
2 parents 5c7ac18 + 5b349eb commit d90db87
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/upload-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Upload assets
on:
workflow_dispatch:

jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Save GPG Private Key
run: echo "${{ secrets.GPG_PRIVATE_KEY }}" > gpg_private_key.txt
- name: Save Passphrase
run: echo "${{ secrets.PASSPHRASE }}" > passphrase.txt
- name: Upload to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl private --exclude '.git/*'
src: ./
dest: s3://port-tf-provider-assets/
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit d90db87

Please sign in to comment.