Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build-multi-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ jobs:
# yamllint disable-line rule:line-length
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci/skip/multi-arch-build') }}
run: make containerized-build
- name: Build binary
run: |
echo "creating images cache..."
docker save hub.easystack.io/captain/cephcsi:v3.9.0-es| pigz > ceph-csi-x86.tar.gz
docker save hub.easystack.io/arm64v8/cephcsi:v3.9.0-es| pigz > ceph-csi-arm.tar.gz
- name: cache x86 image
uses: actions/upload-artifact@v2
with:
name: ceph-csi-x86.tar.gz
path: ceph-csi-x86.tar.gz
- name: cache arm image
uses: actions/upload-artifact@v2
with:
name: ceph-csi-arm.tar.gz
path: ceph-csi-arm.tar.gz

Empty file added .gitkeep
Empty file.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ ifeq ($(HAVE_CPUSET),1)
CPUSET ?= --cpuset-cpus=0-${CPUS}
endif

CSI_IMAGE_NAME=$(if $(ENV_CSI_IMAGE_NAME),$(ENV_CSI_IMAGE_NAME),hub.easystack.io/captain/cephcsi)

ifeq ($(GOARCH),amd64)
CSI_IMAGE_NAME=hub.easystack.io/captain/cephcsi
else ifeq ($(GOARCH),arm64)
CSI_IMAGE_NAME=hub.easystack.io/arm64v8/cephcsi
else
CSI_IMAGE_NAME=hub.easystack.io/arm64v8/cephcsi
endif

CSI_IMAGE_VERSION=$(shell . $(CURDIR)/build.env ; echo $${CSI_IMAGE_VERSION})
CSI_IMAGE=$(CSI_IMAGE_NAME):$(CSI_IMAGE_VERSION)

Expand Down