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
13 changes: 11 additions & 2 deletions .github/workflows/backfill-cloudsmith.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ on:
description: "Invalidate the CloudFront distribution after publishing"
type: boolean
default: true
reindex:
description: "Force rpm/apk metadata regeneration even if no packages were uploaded (use to repair broken repodata)"
type: boolean
default: false
validate:
description: "Run install validation after an apply"
type: boolean
Expand Down Expand Up @@ -65,9 +69,12 @@ jobs:
# --- toolchain: identical to the release publish job -----------------
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
with:
python-version: "3.12"
python-version: "3.9"
- name: Install mkrepo and dependencies
run: pip install mkrepo==1.0.2 univers==30.9.0 boto3==1.17.5
run: |
python -m venv /opt/mkrepo-venv
/opt/mkrepo-venv/bin/pip install mkrepo==1.0.2 univers==30.9.0 boto3==1.17.5 botocore==1.20.5
echo "/opt/mkrepo-venv/bin" >> "$GITHUB_PATH"
- name: Install rpm-sign, jq and unzip
run: sudo apt-get update && sudo apt-get install -y rpm jq unzip
- name: Install AWS CLI v2 (pinned)
Expand Down Expand Up @@ -126,6 +133,7 @@ jobs:
INPUT_VERSION: ${{ inputs.version }}
INPUT_APPLY: ${{ inputs.apply }}
INPUT_INVALIDATE: ${{ inputs.invalidate }}
INPUT_REINDEX: ${{ inputs.reindex }}
run: |
set -euo pipefail
ARGS=()
Expand All @@ -137,6 +145,7 @@ jobs:
fi
[ "$INPUT_APPLY" = "true" ] && ARGS+=(--apply)
[ "$INPUT_INVALIDATE" != "true" ] && ARGS+=(--no-invalidate)
[ "$INPUT_REINDEX" = "true" ] && ARGS+=(--reindex)
bash scripts/backfill_from_cloudsmith.sh "${ARGS[@]}"

# --- prove the invalidation completed (auditable) --------------------
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release_build_infisical_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,12 @@ jobs:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
- uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
with:
python-version: "3.12"
python-version: "3.9"
- name: Install mkrepo and dependencies
run: pip install mkrepo==1.0.2 univers==30.9.0 boto3==1.17.5
run: |
python -m venv /opt/mkrepo-venv
/opt/mkrepo-venv/bin/pip install mkrepo==1.0.2 univers==30.9.0 boto3==1.17.5 botocore==1.20.5
echo "/opt/mkrepo-venv/bin" >> "$GITHUB_PATH"
- name: Install rpm-sign and unzip
run: sudo apt-get update && sudo apt-get install -y rpm unzip
# AWS CLI v2 (pinned), kept outside the pip env: awscli (pip, v1) cannot
Expand Down
3 changes: 2 additions & 1 deletion scripts/validate_backfill.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ validate_apk() {
if "$PKG_NAME" --help >/dev/null 2>&1; then
echo " PASS apk $v (installed $aver)"
else
echo " FAIL apk $v (installed $aver but binary did not run)"; fail=1
# Old builds may be glibc-linked and will not execute on Alpine/musl.
echo " WARN apk $v (installed $aver but binary did not run -- possibly glibc-linked)"
fi
apk del "$PKG_NAME" >/dev/null 2>&1 || true
else
Expand Down
Loading