Skip to content

Commit fd0c457

Browse files
committed
db s3 action
1 parent 047fa58 commit fd0c457

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/docker-s3-deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,23 @@ jobs:
2828
exit 1
2929
fi
3030
31+
- name: Import GPG key
32+
uses: crazy-max/ghaction-import-gpg@v6
33+
with:
34+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
35+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
36+
37+
- name: Sign tron-docker.zip with GPG
38+
run: |
39+
gpg --detach-sign --armor tron-docker.zip
40+
# This creates tron-docker.zip.asc (ASCII-armored signature)
41+
42+
- name: Export GPG public key to tron-docker-099228E1.pub
43+
run: |
44+
gpg --armor --export > tron-docker-099228E1.pub
45+
# Optional: Set restrictive permissions
46+
chmod 600 tron-docker-099228E1.pub
47+
3148
- name: Configure AWS Credentials
3249
uses: aws-actions/configure-aws-credentials@v4
3350
with:
@@ -39,3 +56,8 @@ jobs:
3956
run: |
4057
aws s3 cp tron-docker.zip s3://${{ github.event.inputs.bucket-name }}/package/publish-latest.zip
4158
aws s3 cp tron-docker.zip s3://${{ github.event.inputs.bucket-name }}/package/publish-v0.1.1.zip
59+
60+
zip -r public.zip tron-docker.zip tron-docker.zip.asc
61+
aws s3 cp tron-docker-099228E1.pub s3://${{ github.event.inputs.bucket-name }}/public-keys/tron-docker-099228E1.pub
62+
aws s3 cp tron-docker-099228E1.pub s3://${{ github.event.inputs.bucket-name }}/signatures/tron-docker.zip.asc
63+
aws s3 cp tron-docker.zip s3://${{ github.event.inputs.bucket-name }}/tron-docker.zip

0 commit comments

Comments
 (0)