mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
chore: Push edge binaries to bucket (#8668)
This will allow us to have a redirect URL for edge binaries from the website as we had before. The new secret has been created but will need to merge to get access to it and test. Signed-off-by: Charlie Egan <charlie_egan@apple.com>
This commit is contained in:
@@ -193,6 +193,16 @@ jobs:
|
||||
merge-multiple: true
|
||||
path: _release
|
||||
|
||||
- name: Push edge binaries to bucket
|
||||
env:
|
||||
S3_RELEASE_BINARY_URL: ${{ secrets.S3_RELEASE_BINARY_URL }} # zizmor: ignore[secrets-outside-env]
|
||||
if: ${{ env.S3_RELEASE_BINARY_URL }}
|
||||
run: |
|
||||
for asset in _release/*/opa_*_*; do
|
||||
curl -f -X PUT --data-binary @"$asset" \
|
||||
"${S3_RELEASE_BINARY_URL}/binaries/edge/$(basename "$asset")"
|
||||
done
|
||||
|
||||
- name: Create or update dev prerelease
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
Reference in New Issue
Block a user