Skip to content

Commit 0bb4f3e

Browse files
committed
ci: splits release
1 parent 44011aa commit 0bb4f3e

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/release.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
permissions:
99
contents: write # required to write to github release.
10+
packages: write
11+
actions: write
1012

1113
jobs:
1214
release:
@@ -42,3 +44,31 @@ jobs:
4244
PROD_REGISTRY: "ghcr.io/nutanix-cloud-native"
4345
GH_ORG_NAME: nutanix-cloud-native
4446
TAG: ${{ env.RELEASE_TAG }}
47+
release:
48+
name: Push images
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: checkout code
52+
uses: actions/checkout@v5
53+
with:
54+
fetch-depth: 0
55+
- name: Set up Go
56+
uses: actions/setup-go@v6
57+
with:
58+
go-version: '1.24'
59+
- name: Login to GitHub Container Registry
60+
uses: docker/login-action@v3
61+
with:
62+
registry: ghcr.io
63+
username: ${{ github.actor }}
64+
password: ${{ secrets.GITHUB_TOKEN }}
65+
- name: Push docker images
66+
run: |
67+
make docker-build-all
68+
make docker-push-all
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
REGISTRY: "ghcr.io/nutanix-cloud-native"
72+
PROD_REGISTRY: "ghcr.io/nutanix-cloud-native"
73+
GH_ORG_NAME: nutanix-cloud-native
74+
TAG: ${{ env.RELEASE_TAG }}

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,6 @@ release: clean-release check-release-tag check-release-branch $(RELEASE_DIR) $(G
587587
CORE_CONTROLLER_IMG=$(PROD_REGISTRY)/$(CORE_IMAGE_NAME) $(MAKE) release-manifests
588588
$(MAKE) release-policies
589589
$(GORELEASER) release --config $(GORELEASER_CONFIG) --release-notes $(RELEASE_DIR)/CHANGELOG.md --clean --parallelism $(GORELEASER_PARALLELISM)
590-
$(MAKE) docker-build-all
591-
$(MAKE) docker-push-all
592590

593591
release-policies: $(RELEASE_POLICIES) ## Release policies
594592

0 commit comments

Comments
 (0)