Skip to content

Commit

Permalink
Add FIPS Registry variable to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zulfilee committed Oct 5, 2023
1 parent 37eaa28 commit f304a1f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/spectro-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
-
Expand All @@ -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
Expand Down

0 comments on commit f304a1f

Please sign in to comment.