forked from kubernetes-sigs/cluster-api-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FIPS Registry variable to the workflow
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 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 |
---|---|---|
|
@@ -21,7 +21,8 @@ jobs: | |
# Ensure that the credentials are provided as encrypted secrets | ||
env: | ||
SPECTRO_VERSION: ${{ github.event.inputs.release_version }} | ||
REGISTRY: gcr.io/spectro-images-public/release/cluster-api-aws | ||
LEGACY_REGISTRY: gcr.io/spectro-images-public/release/cluster-api-aws | ||
FIPS_REGISTRY: gcr.io/spectro-images-public/release-fips/cluster-api-aws | ||
steps: | ||
- | ||
uses: mukunku/[email protected] | ||
|
@@ -35,7 +36,9 @@ jobs: | |
exit 1 | ||
- | ||
if: ${{ github.event.inputs.rel_type == 'rc' }} | ||
run: echo "REGISTRY=gcr.io/spectro-dev-public/release/cluster-api-aws" >> $GITHUB_ENV | ||
run: | | ||
echo "LEGACY_REGISTRY=gcr.io/spectro-dev-public/release/cluster-api-aws" >> $GITHUB_ENV | ||
echo "FIPS_REGISTRY=gcr.io/spectro-dev-public/release-fips/cluster-api-aws" >> $GITHUB_ENV | ||
- | ||
uses: actions/checkout@v3 | ||
- | ||
|
@@ -50,13 +53,16 @@ jobs: | |
password: ${{ secrets.REGISTRY_PASSWORD }} | ||
- | ||
name: Build Image | ||
env: | ||
REGISTRY: ${{ env.LEGACY_REGISTRY }} | ||
run: | | ||
make docker-build-all | ||
make docker-push-all | ||
- | ||
name: Build Image - FIPS Mode | ||
env: | ||
FIPS_ENABLE: yes | ||
REGISTRY: ${{ env.FIPS_REGISTRY }} | ||
run: | | ||
make docker-build-all | ||
make docker-push-all | ||
|