Skip to content

Commit 974e9bc

Browse files
crazy-maxiQQBot
authored andcommitted
hack(dockerfile-frontend): remove daily release type
Signed-off-by: CrazyMax <[email protected]>
1 parent 1a4a875 commit 974e9bc

File tree

3 files changed

+1
-110
lines changed

3 files changed

+1
-110
lines changed

frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,4 @@ LABEL moby.buildkit.frontend.caps="moby.buildkit.frontend.inputs,moby.buildkit.f
3535
COPY --from=build /dockerfile-frontend /bin/dockerfile-frontend
3636
ENTRYPOINT ["/bin/dockerfile-frontend"]
3737

38-
39-
FROM base AS buildid-check
40-
RUN apt-get update && apt-get --no-install-recommends install -y jq
41-
COPY /frontend/dockerfile/cmd/dockerfile-frontend/hack/check-daily-outdated .
42-
COPY --from=r.j3ss.co/reg /usr/bin/reg /bin
43-
COPY --from=build /dockerfile-frontend .
44-
ARG CHANNEL
45-
ARG REPO
46-
ARG DATE
47-
RUN ./check-daily-outdated $CHANNEL $REPO $DATE /out
48-
49-
FROM scratch AS buildid
50-
COPY --from=buildid-check /out/ /
51-
5238
FROM release

frontend/dockerfile/cmd/dockerfile-frontend/hack/check-daily-outdated

Lines changed: 0 additions & 48 deletions
This file was deleted.

frontend/dockerfile/cmd/dockerfile-frontend/hack/release

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ set -eu
55

66
: "${RELEASE=false}"
77
: "${PLATFORMS=}"
8-
: "${DAILY_TARGETS=}"
98

109
usage() {
11-
echo "$0 (master|tag|daily) (tag|channel) <repo> [push]"
10+
echo "$0 (master|tag) (tag|channel) <repo> [push]"
1211
exit 1
1312
}
1413

@@ -114,50 +113,4 @@ case $TYP in
114113
--file "./frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile" \
115114
$currentcontext
116115
;;
117-
"daily")
118-
# if [ -z $DAILY_TARGETS ]; then
119-
# DAILY_TARGETS=""
120-
# fi
121-
122-
for TAG in $DAILY_TARGETS; do
123-
124-
tagf=./frontend/dockerfile/release/$TAG/tags
125-
if [ ! -f $tagf ]; then
126-
echo "invalid release $TAG"
127-
exit 1
128-
fi
129-
buildTags=$(cat $tagf)
130-
131-
# find the buildID of the last pushed image
132-
# returns a BuildID if rebuild needed
133-
134-
tmp=$(mktemp -d -t buildid.XXXXXXXXXX)
135-
dt=$(date +%Y%m%d)
136-
buildxCmd build $platformFlag $cacheFromFlags $cacheToFlags $nocacheFilterFlag \
137-
--target "buildid" \
138-
--build-arg "CHANNEL=$TAG" \
139-
--build-arg "BUILDTAGS=$buildTags" \
140-
--build-arg "REPO=$REPO" \
141-
--build-arg "DATE=$dt" \
142-
--output "type=local,dest=$tmp" \
143-
--file "./frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile" \
144-
$currentcontext
145-
146-
if [ -f $tmp/buildid ]; then
147-
buildid=$(cat $tmp/buildid)
148-
echo "buildid: $buildid"
149-
150-
buildxCmd build $platformFlag $cacheFromFlags $cacheToFlags $nocacheFilterFlag $(buildAttestFlags) \
151-
--build-arg "CHANNEL=$TAG" \
152-
--build-arg "BUILDTAGS=$buildTags" \
153-
--output "type=image,name=$REPO:$dt-$TAG,$pushFlag" \
154-
--file "./frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile" \
155-
$currentcontext
156-
rm $tmp/buildid
157-
fi
158-
rm -r $tmp
159-
160-
done
161-
162-
;;
163116
esac

0 commit comments

Comments
 (0)