forked from kube-vip/kube-vip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCP-2003: Update builder image, go version and spectro-release.yaml (#15
- Loading branch information
1 parent
123166e
commit f068f9f
Showing
5 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,12 @@ on: | |
description: 'Version to Build' | ||
required: true | ||
default: '0.0.0' | ||
rel_type: | ||
type: choice | ||
description: Type of release | ||
options: | ||
- release | ||
- rc | ||
jobs: | ||
builder: | ||
# edge-runner machine group is a bunch of machines in US Datacenter | ||
|
@@ -15,6 +21,8 @@ jobs: | |
# Ensure that the credentials are provided as encrypted secrets | ||
env: | ||
SPECTRO_VERSION: ${{ github.event.inputs.release_version }} | ||
LEGACY_REGISTRY: gcr.io/spectro-images-public/release/kube-vip | ||
FIPS_REGISTRY: gcr.io/spectro-images-public/release-fips/kube-vip | ||
steps: | ||
- | ||
uses: mukunku/[email protected] | ||
|
@@ -26,6 +34,11 @@ jobs: | |
run: | | ||
echo "Tag already exists for spectro-v${{ github.event.inputs.release_version }}..." | ||
exit 1 | ||
- | ||
if: ${{ github.event.inputs.rel_type == 'rc' }} | ||
run: | | ||
echo "LEGACY_REGISTRY=gcr.io/spectro-dev-public/release/kube-vip" >> $GITHUB_ENV | ||
echo "FIPS_REGISTRY=gcr.io/spectro-dev-public/release-fips/kube-vip" >> $GITHUB_ENV | ||
- | ||
uses: actions/checkout@v3 | ||
- | ||
|
@@ -41,18 +54,19 @@ jobs: | |
- | ||
name: Build Image | ||
env: | ||
REGISTRY: gcr.io/spectro-images-public/release/kube-vip | ||
REGISTRY: ${{ env.LEGACY_REGISTRY }} | ||
run: | | ||
make docker | ||
- | ||
name: Build Image - FIPS Mode | ||
env: | ||
FIPS_ENABLE: yes | ||
REGISTRY: gcr.io/spectro-images-public/release-fips/kube-vip | ||
REGISTRY: ${{ env.FIPS_REGISTRY }} | ||
run: | | ||
make docker | ||
- | ||
name: Create Release | ||
if: ${{ github.event.inputs.rel_type == 'release' }} | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/kube-vip/kube-vip | ||
|
||
go 1.19 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/cloudflare/ipvs v0.9.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters