Skip to content

Commit c307a80

Browse files
committed
Remove old build files
1 parent 96e5507 commit c307a80

File tree

6 files changed

+10
-179
lines changed

6 files changed

+10
-179
lines changed

build.sh

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,10 @@
22

33
set -e
44

5-
# Get the versions to build
6-
7-
# If they are passed as args
8-
if [ $# -gt 0 ]; then
9-
buildDirs="$@"
10-
else
11-
# else, get all the relevant dirs
12-
buildDirs=$(ls | grep -E '^php[0-9\.]+$')
13-
fi
14-
15-
# Build each one of them
16-
for version in $buildDirs; do
17-
pushd $version
18-
docker build -t outrigger/cli:2-${version} .
19-
popd
5+
CLI_VERSION="2.10"
6+
for tag in {"php7.2" "php7.3"}; do
7+
docker build \
8+
--build-arg CLI_VERSION="${CLI_VERSION}-${tag}" \
9+
-t outrigger/cli:${CLI_VERSION}-${tag} \
10+
.
2011
done

hooks/build

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

3-
echo "In build"
43
printenv
5-
echo "Cur dir"
6-
pwd
74

5+
echo "Building $DOCKER_TAG"
86
docker build --build-arg CLI_VERSION=$DOCKER_TAG -f $DOCKERFILE_PATH -t $IMAGE_NAME .

hooks/post_push

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#!/bin/bash
22

3-
echo "Post Push"
4-
printenv
5-
6-
shortVersion=${SOURCE_BRANCH%.*-php*}
7-
phpVersion=${SOURCE_BRANCH#*-}
3+
shortVersion=${DOCKER_TAG%.*-php*}
4+
phpVersion=${DOCKER_TAG#*-}
85
tag="${shortVersion}-${phpVersion}"
96

7+
echo "Tagging with ${tag}"
108
docker tag $IMAGE_NAME $DOCKER_REPO:${tag}
119
docker push $DOCKER_REPO:${tag}

php7.2/Dockerfile

Lines changed: 0 additions & 52 deletions
This file was deleted.

php7.3/Dockerfile

Lines changed: 0 additions & 52 deletions
This file was deleted.

php7.4/Dockerfile

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)