Compare commits
2 commits
7cb4bda424
...
57b283703e
Author | SHA1 | Date | |
---|---|---|---|
57b283703e | |||
539064d050 |
2 changed files with 10 additions and 5 deletions
|
@ -17,7 +17,7 @@ jobs:
|
||||||
trigger: true
|
trigger: true
|
||||||
- get: upstream-image
|
- get: upstream-image
|
||||||
trigger: true
|
trigger: true
|
||||||
- task: compute-docker-tags:
|
- task: compute-docker-tags
|
||||||
config:
|
config:
|
||||||
platform: linux
|
platform: linux
|
||||||
image_resource:
|
image_resource:
|
||||||
|
|
|
@ -13,6 +13,11 @@ fail() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo_and_run() {
|
||||||
|
echo "$@"
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
docker_login() {
|
docker_login() {
|
||||||
# TODO: detect registry url
|
# TODO: detect registry url
|
||||||
mkdir -p "$HOME/.docker"
|
mkdir -p "$HOME/.docker"
|
||||||
|
@ -62,7 +67,7 @@ build() {
|
||||||
done < "$additional_tags"
|
done < "$additional_tags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
buildctl-daemonless.sh \
|
echo_and_run buildctl-daemonless.sh \
|
||||||
build \
|
build \
|
||||||
--frontend dockerfile.v0 \
|
--frontend dockerfile.v0 \
|
||||||
--local context="$context" \
|
--local context="$context" \
|
||||||
|
|
Reference in a new issue