19 lines
347 B
Bash
Executable File
19 lines
347 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
set -a
|
|
. .ci/lib.sh
|
|
set +a
|
|
|
|
echo "Setting authentication for $HARBOR_REGISTRY"
|
|
setRegistryAuth "$KANIKO_AUTH_FILE" "$HARBOR_REGISTRY" "$HARBOR_CREDS"
|
|
|
|
image="$APP_NAME/$APP_COMPONENT:$APP_VERSION"
|
|
dockerfile="./Dockerfile"
|
|
|
|
echo "Building $image image"
|
|
executor -c ./ -f "$dockerfile" -d "$HARBOR_REGISTRY/$image"
|
|
|
|
echo 'Done'
|
|
|