Skip to content

Commit

Permalink
Add working-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mrauhala committed Mar 5, 2024
1 parent 028d9fe commit afe401b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
version: [ 2.24, 2.23, 2.22, 2.21, '2.20', 2.19, 2.18, 2.17, 2.16, 2.15 ]

runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.version }}

steps:
- uses: actions/checkout@v4
Expand All @@ -24,8 +27,8 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: docker build ${{ matrix.version }}
run: docker build ${{ matrix.version }} --tag meteofi/geoserver:${{ matrix.version }} --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' ${{ matrix.version }}/Dockerfile)
- name: docker build
run: docker build . --tag meteofi/geoserver:${{ matrix.version }} --tag meteofi/geoserver:$(grep -Po '(?<=GEOSERVER_VERSION\=\")\d.\d+.\d+' Dockerfile)

- if: ${{ matrix.version == '2.24' }}
name: docker tag latest stable
Expand All @@ -38,9 +41,7 @@ jobs:
run: docker tag meteofi/geoserver:${{ matrix.version }} meteofi/geoserver:maintenance

- name: docker compose up
run: |
cd ${{ matrix.version }}
docker compose up -d --wait --wait-timeout 300
run: docker compose up -d --wait --wait-timeout 300

- name: curl geoserver
run: curl --silent --show-error --fail --include "http://localhost:8080/geoserver/wms?request=getCapabilities&service=WMS"
Expand Down

0 comments on commit afe401b

Please sign in to comment.