Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert prime image building changes #467

Merged
Merged
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
30 changes: 6 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ on:

env:
TAG: ${{ github.ref_name }}
GHCR_REGISTRY: ghcr.io
REGISTRY: ghcr.io

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
actions: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,32 +24,16 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '=1.21.8'
- name: Docker login ghcr.io
- name: Docker login
uses: docker/login-action@v3
with:
registry: ${{ env.GHCR_REGISTRY }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker image for ghcr.io
- name: Build docker image
run: make docker-build-all TAG=${{ env.TAG }}
- name: Push docker image to ghcr.io
run: make docker-push-all TAG=${{ env.TAG }} PROD_REGISTRY=${{ env.GHCR_REGISTRY }}
- name: Read prime registry secrets
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ inputs.github_repository_for_docker }}/registry/prime/rancher/cluster-api-controller/credentials username | DOCKER_USERNAME;
secret/data/github/repo/${{ inputs.github_repository_for_docker }}/registry/prime/rancher/cluster-api-controller/credentials password | DOCKER_PASSWORD;
- name: Docker login to registry
uses: docker/login-action@v3
with:
registry: ${{ vars.PRIME_REGISTRY }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name: Build docker image for prime registry
run: make docker-build-all TAG=${{ env.TAG }}
- name: Push docker image to prime registry
run: make docker-push-all TAG=${{ env.TAG }} PROD_REGISTRY=${{ vars.PRIME_REGISTRY }}
- name: Push docker image
run: make docker-push-all TAG=${{ env.TAG }} PROD_REGISTRY=${{ env.REGISTRY }}
release:
runs-on: ubuntu-latest
permissions:
Expand Down