Skip to content

Commit

Permalink
Merge pull request #466 from furkatgofurov7/revert-prime-image-build
Browse files Browse the repository at this point in the history
[release-0.7] Revert prime image building changes
  • Loading branch information
furkatgofurov7 authored Oct 10, 2024
2 parents 5bd6cd7 + fe46818 commit 5414115
Showing 1 changed file with 6 additions and 24 deletions.
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/clusterapi-forks/registry/prime/rancher/cluster-api-controller/credentials username | DOCKER_USERNAME ;
secret/data/github/repo/clusterapi-forks/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

0 comments on commit 5414115

Please sign in to comment.