File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 41
41
with :
42
42
context : docker-contributor
43
43
platforms : linux/amd64,linux/arm64
44
- push : true
44
+ push : false
45
45
tags : ${{ steps.meta.outputs.tags }}
46
46
labels : ${{ steps.meta.outputs.labels }}
47
47
Original file line number Diff line number Diff line change @@ -58,30 +58,29 @@ jobs:
58
58
run : |
59
59
cd docker
60
60
set -x
61
- sh ./build.sh "${{ env.DOMJUDGE_VERSION }}" ${{ github.actor }}
61
+ sh ./build.sh "${{ env.DOMJUDGE_VERSION }}"
62
62
set +x
63
63
64
- - run : docker image list
65
-
66
64
- name : Build and push
67
65
run : |
68
66
for IMG in domserver judgehost default-judgehost-chroot; do
69
67
echo "::group::$IMG"
70
68
IMAGE_NAME="${GITHUB_REPOSITORY_OWNER@L}/$IMG:${{ env.DOMJUDGE_VERSION }}"
71
69
docker image tag "$IMAGE_NAME" ghcr.io/${GITHUB_REPOSITORY_OWNER@L}/$IMG:${{ env.PR_TAG }}
72
70
docker image tag "$IMAGE_NAME" ${GITHUB_REPOSITORY_OWNER@L}/$IMG:${{ env.PR_TAG }}
73
- docker push ghcr.io/${GITHUB_REPOSITORY_OWNER@L}/$IMG:${{ env.PR_TAG }}
74
71
echo "::endgroup::"
75
72
done
76
73
74
+ - run : docker image list
75
+
77
76
- name : Check for wrong permisions
78
77
run : |
79
78
docker image list
80
79
set -x
81
80
for IMG in domserver judgehost; do
82
- files=$(docker run --rm --pull=never "${{ github.repository_owner }} /$IMG:${{ env.PR_TAG }}" find / -xdev -perm -o+w ! -type l ! \( -type d -a -perm -+t \) ! -type c)
81
+ files=$(docker run --rm --pull=never "domjudge /$IMG:${{ env.PR_TAG }}" find / -xdev -perm -o+w ! -type l ! \( -type d -a -perm -+t \) ! -type c)
83
82
if [ -n "$files" ]; then
84
- echo "error: image ${{ github.repository_owner }} /$IMG:${{ env.PR_TAG }} contains world-writable files:" >&2
83
+ echo "error: image domjudge /$IMG:${{ env.PR_TAG }} contains world-writable files:" >&2
85
84
printf "%s\n" "$files" >&2
86
85
exit 1
87
86
fi
Original file line number Diff line number Diff line change 42
42
uses : docker/build-push-action@v5
43
43
with :
44
44
context : " ./docker-gitlabci"
45
- push : true
45
+ push : false
46
46
tags : ${{ steps.meta.outputs.tags }}
47
47
labels : ${{ steps.meta.outputs.labels }}
48
48
You can’t perform that action at this time.
0 commit comments