File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
jobs/scripts/nightly-samba-containers Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ CONTAINER_GIT_REPO=" https://github.com/samba-in-kubernetes/samba-container"
4+ CONTAINER_GIT_BRANCH=" main"
5+ CONTAINER_CMD=${CONTAINER_CMD:- podman}
6+ IMG_REGISTRY=" quay.io"
7+ IMG_REGISTRY_BASE=" ${IMG_REGISTRY} /samba.org"
8+
9+ # if anything fails, we'll abort
10+ set -e
11+
12+ dnf -y install git make podman
13+
14+ git clone --depth=1 --branch=" ${CONTAINER_GIT_BRANCH} " \
15+ " ${CONTAINER_GIT_REPO} " " ${CONTAINER_GIT_BRANCH} "
16+ cd " ${CONTAINER_GIT_BRANCH} "
17+
18+ make KIND=${KIND} OS_NAME=${OS_NAME} PACKAGE_SOURCE=${PACKAGE_SOURCE} \
19+ BUILD_ARCH=${OS_ARCH} build-image
20+
21+ IMAGE=$( ./hack/build-image --kind ${KIND} --distro-base ${OS_NAME} \
22+ --package-source ${PACKAGE_SOURCE} --arch ${OS_ARCH} \
23+ --print)
24+
25+ ./hack/build-image --retag --container-engine ${CONTAINER_CMD} \
26+ --repo-base ${IMG_REGISTRY_BASE} --no-distro-qualified \
27+ -i ${IMAGE}
28+
29+ podman login -u ${SAMBA_ORG_QUAY_USER} \
30+ -p ${SAMBA_ORG_QUAY_PASSWORD} ${IMG_REGISTRY}
31+
32+ ./hack/build-image --push --container-engine ${CONTAINER_CMD} --verbose \
33+ --push-state " exists" --push-selected-tags " mixed" \
34+ -i ${IMG_REGISTRY_BASE} /${IMAGE}
35+
36+ podman logout ${IMG_REGISTRY}
You can’t perform that action at this time.
0 commit comments