@@ -32,16 +32,16 @@ cwd="$PWD"
32
32
repo_root=" $( readlink -f " $( dirname " $0 " ) " /..) "
33
33
34
34
# use docker image tag provided by GitHub actions if possible
35
- DOCKER_TAG= " ${DOCKER_TAG :- ghcr.io/ appimage / appimageupdate-build: local-build}"
35
+ docker_tag= " ghcr.io/appimagecommunity /appimageupdate-build:$( cut -d: -f2- <<< " ${DOCKER_METADATA_OUTPUT_TAGS:-: local-build}" ) "
36
36
37
- default_branch_tag=" $( echo " $DOCKER_TAG " | cut -d: -f1) :$( echo " ${GITHUB_DEFAULT_BRANCH:- main} " | rev | cut -d/ -f1 | rev) "
37
+ default_branch_tag=" $( cut -d: -f1 <<< " $docker_tag " ) :$( echo " ${GITHUB_DEFAULT_BRANCH:- main} " | rev | cut -d/ -f1 | rev) "
38
38
39
39
extra_build_args=()
40
40
41
41
if [[ " ${GITHUB_ACTIONS:- } " != " " ]]; then
42
42
echo " Building on GitHub actions, pushing cache"
43
43
extra_build_args+=(
44
- --output " type=registry,ref=${DOCKER_TAG } "
44
+ --output " type=registry,ref=${docker_tag } "
45
45
--push
46
46
)
47
47
else
51
51
# building local image to "cache" installed dependencies for subsequent builds
52
52
docker buildx build \
53
53
" ${extra_build_args[@]} " \
54
- --cache-from " type=registry,ref=${DOCKER_TAG } " \
54
+ --cache-from " type=registry,ref=${docker_tag } " \
55
55
--cache-from " type=registry,ref=${default_branch_tag} " \
56
56
--platform " $docker_platform " \
57
- -t " $DOCKER_TAG " \
57
+ -t " $docker_tag " \
58
58
--build-arg ARCH=" $ARCH " \
59
59
--build-arg CMAKE_ARCH=" $CMAKE_ARCH " \
60
60
" $repo_root " /ci
@@ -80,5 +80,5 @@ docker run \
80
80
-v " $cwd " :/out \
81
81
-w /out \
82
82
--user " $uid " \
83
- " $DOCKER_TAG " \
83
+ " $docker_tag " \
84
84
bash /ws/ci/build-appimages.sh
0 commit comments