-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-and-push
31 lines (23 loc) · 1.22 KB
/
build-and-push
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
docker image pull php:8.2-apache-bookworm
docker image pull php:8.1-apache-bullseye
docker image pull php:7.4-apache-buster
VERSION="10.2-apache"
docker build -t neffets/drupal:$VERSION -f 10.2/php8.2/apache-bookworm/Dockerfile 10.2/php8.2/apache-bookworm/
docker push neffets/drupal:$VERSION
docker tag neffets/drupal:$VERSION neffets/drupal:latest; docker push neffets/drupal:latest
VERSION="10.3-apache"
docker build -t neffets/drupal:$VERSION -f 10.3/php8.2/apache-bookworm/Dockerfile 10.3/php8.2/apache-bookworm/
docker push neffets/drupal:$VERSION
VERSION="10.1-apache"
docker build -t neffets/drupal:$VERSION -f 10.1/php8.2/apache-bookworm/Dockerfile 10.1/php8.2/apache-bookworm/
docker push neffets/drupal:$VERSION
VERSION="9.5-apache"
docker build -t neffets/drupal:$VERSION -f 9.5/php8.1/apache-bullseye/Dockerfile 9.5/php8.1/apache-bullseye/
docker push neffets/drupal:$VERSION
VERSION="7-apache"
docker build --no-cache -t neffets/drupal:$VERSION -f 7/php8.1/apache-bullseye/Dockerfile 7/php8.1/apache-bullseye/
docker push neffets/drupal:$VERSION
VERSION="6-apache"
docker build --no-cache -t neffets/drupal:$VERSION -f 6/php7.4/apache-buster/Dockerfile 6/php7.4/apache-buster/
docker push neffets/drupal:$VERSION