Fix cache invalidation on commit update

This commit is contained in:
BtbN 2023-07-08 20:11:09 +02:00
parent 6c86fdaad0
commit a7ae13efb7
8 changed files with 8 additions and 16 deletions

View file

@ -8,8 +8,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN retry-tool sh -c \"rm -rf $SELF && git clone '$SCRIPT_REPO' $SELF\""
to_df "RUN git -C $SELF checkout \"$SCRIPT_COMMIT\""
to_df "RUN retry-tool sh -c \"rm -rf $SELF && git clone '$SCRIPT_REPO' $SELF\" && git -C $SELF checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -9,8 +9,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN git clone --filter=blob:none \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
to_df "RUN git clone --filter=blob:none \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -12,8 +12,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -8,8 +8,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -9,8 +9,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -9,8 +9,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -9,8 +9,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -12,8 +12,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\" && git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {