Add test for latest version #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: docker login | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin | |
- name: docker build 2.24 | |
run: docker build 2.24/ --tag meteofi/geoserver:2.24 --tag meteofi/geoserver:latest --tag meteofi/geoserver:stable --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.24/Dockerfile) | |
- name: docker build 2.23 | |
run: docker build 2.23/ --tag meteofi/geoserver:2.23 --tag meteofi/geoserver:maintenance --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.23/Dockerfile) | |
- name: docker build 2.22 | |
run: docker build 2.22/ --tag meteofi/geoserver:2.22 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.22/Dockerfile) | |
- name: docker build 2.21 | |
run: docker build 2.21/ --tag meteofi/geoserver:2.21 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.21/Dockerfile) | |
- name: docker build 2.20 | |
run: docker build 2.20/ --tag meteofi/geoserver:2.20 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.20/Dockerfile) | |
- name: docker build 2.19 | |
run: docker build 2.19/ --tag meteofi/geoserver:2.19 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.19/Dockerfile) | |
- name: docker build 2.18 | |
run: docker build 2.18/ --tag meteofi/geoserver:2.18 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.18/Dockerfile) | |
- name: docker build 2.17 | |
run: docker build 2.17/ --tag meteofi/geoserver:2.17 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.17/Dockerfile) | |
- name: docker build 2.16 | |
run: docker build 2.16/ --tag meteofi/geoserver:2.16 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.16/Dockerfile) | |
- name: docker build 2.15 | |
run: docker build 2.15/ --tag meteofi/geoserver:2.15 --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' 2.15/Dockerfile) | |
- name: docker test | |
run: | | |
docker run --name test --rm -p 127.0.0.1:8080:8080 meteofi/geoserver:latest &> debug.log & | |
sleep 45 | |
cat debug.log | |
docker logs test | |
curl -f "http://localhost:8080/geoserver/wms?request=getCapabilities&service=WMS" || exit 1 | |
docker stop test | |
- name: docker push | |
run: docker push --all-tags meteofi/geoserver |