Skip to content

Commit

Permalink
Add build controller and host-definer
Browse files Browse the repository at this point in the history
  • Loading branch information
uriziv1 committed Feb 4, 2025
1 parent 6a215e0 commit 56a6422
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/iso-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
BUILD_VERSION=${{ github.event.release.tag_name }}
echo "BUILD_VERSION=${BUILD_VERSION:1}" >> $GITHUB_ENV
# Build and (optionally) push the operator image
# Build and (optionally) push the csi node image
- name: build csi node image
uses: docker/build-push-action@v6
with:
Expand All @@ -84,6 +84,36 @@ jobs:
# Use a 'dev' tag, that won't be pushed, for non-release builds
tags: quay.io/uriziv1/ibm-block-csi-driver-node:${{ env.BUILD_VERSION || 'dev' }}

# Build and (optionally) push the csi controller image
- name: build csi controller image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile-csi-controller
platforms: linux/amd64,linux/ppc64le,linux/s390x
build-args: |
VCS_REF=${{ env.BUILD_VERSION || 'dev' }}-${{ steps.vars.outputs.sha_short }}
VCS_URL=${{ env.VCS_URL }}
# Only push if we are publishing a release
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
# Use a 'dev' tag, that won't be pushed, for non-release builds
tags: quay.io/uriziv1/ibm-block-csi-driver-controller:${{ env.BUILD_VERSION || 'dev' }}

# Build and (optionally) push the csi host-definer image
- name: build csi host-definer image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile-csi-host-definer
platforms: linux/amd64,linux/ppc64le,linux/s390x
build-args: |
VCS_REF=${{ env.BUILD_VERSION || 'dev' }}-${{ steps.vars.outputs.sha_short }}
VCS_URL=${{ env.VCS_URL }}
# Only push if we are publishing a release
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
# Use a 'dev' tag, that won't be pushed, for non-release builds
tags: quay.io/uriziv1/ibm-block-csi-host-definer:${{ env.BUILD_VERSION || 'dev' }}

#- name: generate bundle manifests and metadata
# run: |
# export IMAGE_TAG=${{ env.BUILD_VERSION || 'dev' }}
Expand Down

0 comments on commit 56a6422

Please sign in to comment.