Skip to content

Commit

Permalink
Merge pull request #210 from salasberryfin/fix-cr-token-release-action
Browse files Browse the repository at this point in the history
chore: remove references to prod registry endpoint secret
  • Loading branch information
richardcase authored Oct 18, 2023
2 parents af0e9c0 + bc62d35 commit ee02b86
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
env:
PROD_REGISTRY: registry.rancher.com/rancher

permissions:
contents: write # Allow to create a release.
Expand Down Expand Up @@ -149,7 +151,6 @@ jobs:
s390x_digest: ${{ steps.prod-images.outputs.s390x_digest }}
env:
TAG: ${{ github.ref_name }}
PROD_REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
PROD_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
PROD_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
PROD_ORG: rancher-sandbox
Expand All @@ -162,9 +163,6 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '=1.20.7'
- name: Prepare environment for prod registry
run: |
echo "PROD_REGISTRY=${PROD_REGISTRY/https:\/\//}" >> $GITHUB_ENV
- name: Docker login to prod registry
uses: docker/login-action@v3
with:
Expand All @@ -183,6 +181,9 @@ jobs:
prod-sign:
runs-on: ubuntu-latest
needs: [build-prod]
permissions:
packages: write
id-token: write
strategy:
matrix:
images: [
Expand All @@ -201,7 +202,6 @@ jobs:
]
env:
TAG: ${{ github.ref_name }}
PROD_REGISTRY: registry.rancher.com/rancher
PROD_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
PROD_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
steps:
Expand Down Expand Up @@ -263,7 +263,6 @@ jobs:
runs-on: ubuntu-latest
env:
TAG: ${{ github.ref_name }}
PROD_REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
PROD_ORG: rancher-sandbox
RELEASE_DIR: .cr-release-packages
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -278,10 +277,6 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Prepare environment for prod registry
run: |
echo "PROD_REGISTRY=${PROD_REGISTRY/https:\/\//}" >> $GITHUB_ENV
- name: Package operator chart
run: RELEASE_TAG=${GITHUB_REF##*/} CHART_PACKAGE_DIR=${RELEASE_DIR} REGISTRY=${{ env.PROD_REGISTRY }} ORG=${{ env.PROD_ORG }} make release

Expand Down

0 comments on commit ee02b86

Please sign in to comment.