Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/mirror-to-s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Mirror updates manifests to S3
on:
push:
branches: [updates.simplerisk.com, updates-test.simplerisk.com]

permissions:
id-token: write # for OIDC
contents: read

jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Resolve channel prefix from branch
env:
REF_NAME: ${{ github.ref_name }}
run: |
set -euo pipefail
if [ "$REF_NAME" = "updates.simplerisk.com" ]; then
echo "PREFIX=latest/updates/" >> "$GITHUB_ENV"
elif [ "$REF_NAME" = "updates-test.simplerisk.com" ]; then
echo "PREFIX=testing/updates/" >> "$GITHUB_ENV"
else
echo "Unexpected branch: $REF_NAME" >&2
exit 1
fi

- name: Configure AWS credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.UPDATES_PUBLISHER_ROLE_ARN }}
aws-region: ${{ vars.AWS_REGION }}

- name: Upload manifests
env:
EXTRAS_BUCKET: ${{ vars.EXTRAS_BUCKET }}
run: |
set -euo pipefail
for f in releases.xml Current_Version.xml upgrade_path.xml announcements.xml extra_compatibility.xml; do
aws s3 cp "$f" "s3://$EXTRAS_BUCKET/${PREFIX}${f}" \
--content-type "text/xml" --no-progress
done
2 changes: 1 addition & 1 deletion Current_Version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
<organizational_hierarchy>20260519-001</organizational_hierarchy>
<separation>20260519-001</separation>
<ucf>20260519-001</ucf>
<upgrade>20260519-001</upgrade>
<upgrade>20260604-001</upgrade>
<vulnmgmt>20260519-001</vulnmgmt>
</current_version>
3 changes: 3 additions & 0 deletions extra_compatibility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2673,6 +2673,9 @@
</extra>
</ucf>
<upgrade>
<extra version="20260604-001">
<appversion>20260519-001</appversion>
</extra>
<extra version="20260519-001">
<appversion>20260519-001</appversion>
</extra>
Expand Down
1 change: 1 addition & 0 deletions releases.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<organizational_hierarchy version="20260519-001" />
<separation version="20260519-001" />
<ucf version="20260519-001" />
<upgrade version="20260604-001" />
<upgrade version="20260519-001" />
<vulnmgmt version="20260519-001" />
</extras>
Expand Down
Loading