Skip to content

Commit a89a77d

Browse files
committed
We don´t use the build script anymore
1 parent 580571c commit a89a77d

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/build-gitlab-container-PR.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ jobs:
4848
with:
4949
images: ghcr.io/${{ github.repository }}
5050

51+
- name: Building an example chroot...
52+
run: |
53+
wget https://github.com/DOMjudge/domjudge/archive/refs/heads/main.zip
54+
unzip main.zip
55+
cd domjudge-main
56+
make configure
57+
./configure --with-domjudge-user=domjudge --with-judgehost_chrootdir="$(pwd)/chroot"
58+
cd misc-tools
59+
make dj_make_chroot
60+
sudo ./dj_make_chroot
61+
5162
- name: Build and push Docker images
5263
uses: docker/build-push-action@v5
5364
with:

docker-gitlabci/build.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash -e
22

3+
# This script is not used in GHA CI
34
if [[ -n ${CI} ]]
45
then
56
set -euxo pipefail
@@ -20,16 +21,6 @@ else
2021
REGISTRY=$2
2122
fi
2223

23-
echo "[..] Building an example chroot..."
24-
wget https://github.com/DOMjudge/domjudge/archive/refs/heads/main.zip
25-
unzip main.zip
26-
cd domjudge-main
27-
make configure
28-
./configure --with-domjudge-user=domjudge --with-judgehost_chrootdir="$(pwd)/chroot"
29-
cd misc-tools
30-
make dj_make_chroot
31-
sudo ./dj_make_chroot
32-
3324
echo "[..] Building Docker image for Gitlab CI..."
3425
cp -r ../docker-contributor/php-config ./
3526
docker build -t "${REGISTRY}:${VERSION}" .

0 commit comments

Comments
 (0)