Skip to content

Commit 4987459

Browse files
committed
chore: also upload software manifest and archives to prod s3
1 parent 48f8dd5 commit 4987459

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ami-release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,28 @@ jobs:
3636
role-to-assume: ${{ secrets.DEV_AWS_ROLE }}
3737
aws-region: "us-east-1"
3838

39-
- name: Upload software manifest to s3
39+
- name: Upload software manifest to s3 staging
4040
run: |
4141
cd ansible
4242
ansible-playbook -i localhost \
4343
-e "ami_release_version=${{ steps.process_release_version.outputs.version }}" \
4444
-e "internal_artifacts_bucket=${{ secrets.ARTIFACTS_BUCKET }}" \
4545
manifest-playbook.yml
4646
47+
- name: configure aws credentials - prod
48+
uses: aws-actions/configure-aws-credentials@v1
49+
with:
50+
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
51+
aws-region: "us-east-1"
52+
53+
- name: Upload software manifest to s3 prod
54+
run: |
55+
cd ansible
56+
ansible-playbook -i localhost \
57+
-e "ami_release_version=${{ steps.process_release_version.outputs.version }}" \
58+
-e "internal_artifacts_bucket=${{ secrets.PROD_ARTIFACTS_BUCKET }}" \
59+
manifest-playbook.yml
60+
4761
- name: Create release
4862
uses: softprops/action-gh-release@v1
4963
with:

0 commit comments

Comments
 (0)