aboutsummaryrefslogtreecommitdiff
path: root/docker/build_images.sh
blob: c5f32f4a9985704ffce2ce271af9b6b408e88b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

PUSH=$1

build_image () {
  docker build -t studip/$2 --platform=linux/amd64 -f $1/Dockerfile .
  if [[ $PUSH = 'push' ]]; then
    docker push studip/$2
  fi
}

build_image tests/php83 studip:tests-php8.3 &
build_image tests/php82 studip:tests-php8.2 &
build_image tests/php74 studip:tests-php7.4 &
build_image release-cli release-cli &
wait

echo "Images built"