mirror of
https://github.com/k3s-io/k3s.git
synced 2026-02-18 18:19:11 -05:00
Add registry prefix to image-list file (#13603)
Some checks are pending
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Some checks are pending
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Signed-off-by: Rafael Breno <rafael_breno@outlook.com>
This commit is contained in:
parent
7840510d76
commit
084d2f44e7
1 changed files with 19 additions and 0 deletions
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
|
|
@ -200,6 +200,20 @@ jobs:
|
|||
secret/data/github/repo/${{ github.repository }}/prime-artifacts-uploader/credentials secretAccessKey | AWS_SECRET_ACCESS_KEY ;
|
||||
secret/data/github/repo/${{ github.repository }}/prime-artifacts-uploader/credentials primeArtifactsBucketName | PRIME_ARTIFACTS_BUCKET_NAME
|
||||
|
||||
- name: Read registry secrets (staging)
|
||||
uses: rancher-eio/read-vault-secrets@main
|
||||
if: ${{ contains(github.ref_name, '-rc') && github.repository_owner == 'k3s-io' }}
|
||||
with:
|
||||
secrets: |
|
||||
secret/data/github/repo/${{ github.repository }}/k3s-suse-registry-stg/credentials registry | REGISTRY
|
||||
|
||||
- name: Read registry secrets (prime)
|
||||
uses: rancher-eio/read-vault-secrets@main
|
||||
if: ${{ !contains(github.ref_name, '-rc') && github.repository_owner == 'k3s-io' }}
|
||||
with:
|
||||
secrets: |
|
||||
secret/data/github/repo/${{ github.repository }}/k3s-suse-registry/credentials registry | REGISTRY
|
||||
|
||||
- name: Configure AWS Credentials (s3)
|
||||
uses: aws-actions/configure-aws-credentials@v5
|
||||
with:
|
||||
|
|
@ -243,6 +257,11 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Update Image Registry for Prime/Staging
|
||||
env:
|
||||
REGISTRY: ${{ env.REGISTRY }}
|
||||
run: sed -i "s|docker.io|${REGISTRY}|g" dist/artifacts/k3s-images.txt
|
||||
|
||||
- name: Upload Assets to S3
|
||||
env:
|
||||
S3_PATH: s3://${{ env.PRIME_ARTIFACTS_BUCKET_NAME }}/k3s/${{ github.event.release.tag_name }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue