File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 12
12
required : true
13
13
type : string
14
14
default : ' main'
15
+ release_to_prod :
16
+ description : ' Release AMI to production (will also create GitHub release)'
17
+ required : false
18
+ type : boolean
19
+ default : false
15
20
16
21
permissions :
17
22
contents : write
@@ -105,12 +110,14 @@ jobs:
105
110
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
106
111
107
112
- name : configure aws credentials - prod
113
+ if : ${{ github.event.inputs.release_to_prod == 'true' }}
108
114
uses : aws-actions/configure-aws-credentials@v4
109
115
with :
110
116
role-to-assume : ${{ secrets.PROD_AWS_ROLE }}
111
117
aws-region : " us-east-1"
112
118
113
119
- name : Upload software manifest to s3 prod
120
+ if : ${{ github.event.inputs.release_to_prod == 'true' }}
114
121
run : |
115
122
cd ansible
116
123
ansible-playbook -i localhost \
@@ -120,10 +127,12 @@ jobs:
120
127
manifest-playbook.yml
121
128
122
129
- name : Upload nix flake revision to s3 prod
130
+ if : ${{ github.event.inputs.release_to_prod == 'true' }}
123
131
run : |
124
132
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
125
133
126
134
- name : Create release
135
+ if : ${{ github.event.inputs.release_to_prod == 'true' }}
127
136
uses : softprops/action-gh-release@v2
128
137
with :
129
138
name : ${{ steps.process_release_version.outputs.version }}
You can’t perform that action at this time.
0 commit comments