fix for issue 989 - get Docker build/push working (#997)

* fix for issue 989 - get Docker build/push working - try 1

* fix for issue 989 - get Docker build/push working - try 2 - remove tests - new WFS GeoSolutions
This commit is contained in:
Just van den Broecke
2022-09-27 21:19:38 +02:00
committed by GitHub
parent b635847daf
commit 2b149ad184
3 changed files with 17 additions and 16 deletions
+15 -14
View File
@@ -11,7 +11,8 @@ on:
types: [completed]
env:
TEST_TAG: ${{ secrets.DOCKER_REPOSITORY }}:test
DOCKER_REPOSITORY: geopython/pygeoapi
DOCKER_TEST_IMAGE: geopython/pygeoapi:test
jobs:
on-success:
@@ -24,43 +25,43 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and export to Docker
uses: docker/build-push-action@v2
with:
context: .
load: true
tags: ${{ env.TEST_TAG }}
- name: pygeoapi Unit Tests with Docker Image ⚙️
run: |
docker run --entrypoint "/entrypoint.sh" --rm ${{ env.TEST_TAG }}
tags: ${{ env.DOCKER_TEST_IMAGE }}
# - name: pygeoapi Unit Tests with Docker Image ⚙️
# run: |
# docker run --entrypoint "/entrypoint.sh" --rm ${{ env.DOCKER_TEST_IMAGE }} test
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: |
${{ secrets.DOCKER_REPOSITORY }}
${{ env.DOCKER_REPOSITORY }}
ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}}
+1 -1
View File
@@ -302,7 +302,7 @@ resources:
name: OGR
data:
source_type: WFS
source: WFS:https://demo.geo-solutions.it/geoserver/wfs
source: WFS:https://gs-stable.geosolutionsgroup.com/geoserver/wfs
source_srs: EPSG:32632
target_srs: EPSG:4326
source_capabilities:
+1 -1
View File
@@ -252,7 +252,7 @@ resources:
name: OGR
data:
source_type: WFS
source: WFS:https://demo.geo-solutions.it/geoserver/wfs
source: WFS:https://gs-stable.geosolutionsgroup.com/geoserver/wfs
source_srs: EPSG:32632
target_srs: EPSG:4326
source_capabilities: