Skip to content

Vectors load bucket #401

Vectors load bucket

Vectors load bucket #401

name: Build arm64 image
on: [ push, pull_request ]
jobs:
build-arm64-image:
runs-on: ubuntu-latest
timeout-minutes: 90
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GIT_COMMIT: ${{ github.sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
# Cross-arch build: the job runs on amd64 (ubuntu-latest). We build container
# images for linux/arm64. Docker Buildx uses QEMU to emulate that architecture.
# The tonistiigi/binfmt image registers the right binary formats and emulators
# in the host kernel so "docker build --platform=linux/arm64" (via make) works.
- name: Enable emulation
run: docker run --privileged --rm tonistiigi/binfmt --install all
- name: Get Current Date
id: date
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
- name: Prepare Suffix
id: suffix
if: ${{ github.event.inputs.tag != '' }}
run: echo suffix="-${{ github.event.inputs.tag }}" >> $GITHUB_OUTPUT
- name: Prepare Tags
id: prep
run: |
DOCKER_BASE_IMAGE=noobaa/noobaa-base
DOCKER_BUILDER_IMAGE=noobaa/noobaa-builder
DOCKER_CORE_IMAGE=noobaa/noobaa-core
VERSION="${{ steps.date.outputs.date }}"
echo "::warning ${VERSION}"
BASE_TAGS="${DOCKER_BASE_IMAGE}:${{ github.event.inputs.branch }}-${VERSION}${{ steps.suffix.outputs.suffix }}"
BUILDER_TAGS="${DOCKER_BUILDER_IMAGE}:${{ github.event.inputs.branch }}-${VERSION}${{ steps.suffix.outputs.suffix }}"
CORE_TAGS="${DOCKER_CORE_IMAGE}:${{ github.event.inputs.branch }}-${VERSION}${{ steps.suffix.outputs.suffix }}"
CORE_OCS_DEV_TAG="ocs-dev/noobaa-core:${{ github.event.inputs.branch }}-latest"
echo "::warning ${CORE_TAGS}"
echo "basetags=${BASE_TAGS}" >> $GITHUB_OUTPUT
echo "buildertags=${BUILDER_TAGS}" >> $GITHUB_OUTPUT
echo "coretags=${CORE_TAGS}" >> $GITHUB_OUTPUT
echo "ocsdevlatest=${CORE_OCS_DEV_TAG}" >> $GITHUB_OUTPUT
- name: Build Builder Images
run: CONTAINER_PLATFORM=linux/arm64 make builder
- name: Build Base Images
run: CONTAINER_PLATFORM=linux/arm64 make base
- name: Build NooBaa Images
run: CONTAINER_PLATFORM=linux/arm64 make noobaa