Skip to content

Commit

Permalink
Added new latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Perrin committed Feb 14, 2017
1 parent cd3b47b commit 9f1fa66
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 19 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ language: bash
service: docker

env:
- VERSION=3.3
- VERSION=3.3.4
- VERSION=3.4.3
- VERSION=3.5
- VERSION=3.3 TAG=3.3
- VERSION=3.3.4 TAG=3.3.4
- VERSION=3.4.3 TAG=3.4.3
- VERSION=3.5 TAG=3.5
- VERSION=3.5 TAG=latest

before_install:
- docker build -t $DOCKER_USERNAME/studip:$VERSION $VERSION
script:
- docker build -t $DOCKER_USERNAME/studip:$TAG $VERSION

after_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push $DOCKER_USERNAME/studip:$VERSION
- docker push $DOCKER_USERNAME/studip:$TAG
File renamed without changes.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Docker StudIP
# Supported tags and respective `Dockerfile` links

This project aims to bring [StudIP](http://www.studip.de) to Docker
- `3.5`, `latest` [(3.5/Dockerfile)](https://github.com/cperrin88/docker-studip/tree/master/3.5/Dockerfile)
- `3.4.3` [(3.4.3/Dockerfile)](https://github.com/cperrin88/docker-studip/tree/master/3.4.3/Dockerfile)
- `3.3.4` [(3.3.4/Dockerfile)](https://github.com/cperrin88/docker-studip/tree/master/3.3.4/Docker)
- `3.3` [(3.3/Dockerfile)](https://github.com/cperrin88/docker-studip/tree/master/3.3/Docker)
2 changes: 0 additions & 2 deletions data.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash

declare -A sha1_hashes=(
[3.3]='97fbac00f6a02570d93e902b06ddfb03698baa39'
[3.3.4]='bde8572b2f5570ca074035d74b41e921779d0265'
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions template/travis.yml.template → travis.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ service: docker

env:%%ENVS%%

before_install:
- docker build -t $DOCKER_USERNAME/studip:$VERSION $VERSION
script:
- docker build -t $DOCKER_USERNAME/studip:$TAG $VERSION

after_script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- docker push $DOCKER_USERNAME/studip:$VERSION
- docker push $DOCKER_USERNAME/studip:$TAG
12 changes: 7 additions & 5 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ envs=""

for version in "${versions[@]}"; do
mkdir -p "$version"
cp --force template/Dockerfile.template "$version/Dockerfile"
cp --force template/php.ini "$version/php.ini"
cp --force template/entrypoint "$version/entrypoint"
cp --force Dockerfile.template "$version/Dockerfile"
cp --force php.ini "$version/php.ini"
cp --force entrypoint "$version/entrypoint"
sed -ri \
-e 's!%%STUDIP_VERSION%%!'"$version"'!' \
-e 's!%%STUDIP_PHP_VERSION%%!'"${php_versions[$version]}"'!' \
-e 's!%%STUDIP_DOWNLOAD_URL%%!'"${download_urls[$version]}"'!' \
-e 's!%%STUDIP_ARCHIVE_HASH_SHA1%%!'"${sha1_hashes[$version]}"'!' \
"$version/Dockerfile"
envs+="\n - VERSION=$version"
envs+="\n - VERSION=$version TAG=$version"
done

cp --force template/travis.yml.template ./.travis.yml
envs+="\n - VERSION=$version TAG=latest"

cp --force travis.yml.template ./.travis.yml
sed -ri -e 's!%%ENVS%%!'"$envs"'!' ./.travis.yml

0 comments on commit 9f1fa66

Please sign in to comment.