Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the long tag names #10670

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
- run: make build-config

# Build and lint QGIS images
- run: QGIS_VERSION=3.28 make build-qgisserver
- run: QGIS_VERSION=3.28 make prospector-qgisserver
- run: QGIS_VERSION=3.28-gdal3.6 make build-qgisserver
- run: QGIS_VERSION=3.28-gdal3.6 make prospector-qgisserver

# Tests
- run: make preparetest
Expand Down
46 changes: 39 additions & 7 deletions .github/workflows/qgis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,52 @@ on:
env:
HAS_SECRETS: ${{ secrets.HAS_SECRETS }}
DOCKER_BUILDKIT: 1
MAIN_BRANCH: '2.8'
MAJOR_VERSION: '2.8'

jobs:
main:
common:
runs-on: ubuntu-22.04
name: QGIS build
timeout-minutes: 40
timeout-minutes: 20
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: make build-runner

- run: docker save --output=/tmp/tools.docker camptocamp/geomapfish

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: tools.docker
path: /tmp/tools.docker

main:
runs-on: ubuntu-22.04
name: QGIS build
timeout-minutes: 10
needs: common

strategy:
fail-fast: false
matrix:
version:
# Last LTR
- '3.28'
- 3.28-gdal3.6
- latest
- master

env:
MAIN_BRANCH: '2.8'
MAJOR_VERSION: '2.8'
# Will be soon:
# - 3.28-gdal3.7
# - ltr
# - lr
# - latest
# - master

steps:
- uses: actions/checkout@v3
Expand All @@ -51,7 +77,13 @@ jobs:
id: version
if: env.HAS_SECRETS == 'HAS_SECRETS'

- run: make build-runner
- name: Download artifacts (Docker images) from previous workflows
uses: actions/download-artifact@v2

- name: Load Docker images from previous workflows
run: |
docker load --input=tools.docker/tools.docker

- run: make build-test-db

- name: Build QGIS server
Expand Down
4 changes: 2 additions & 2 deletions ci/create-new-project
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ docker tag "camptocamp/geomapfish:${TAG}" "camptocamp/geomapfish:$(scripts/get-v
docker tag "camptocamp/geomapfish-tools:${TAG}" "camptocamp/geomapfish-tools:$(scripts/get-version --full)"
docker tag "camptocamp/geomapfish-config:${TAG}" "camptocamp/geomapfish-config:$(scripts/get-version --major-minor)"

DOCKER_BUILDKIT=1 docker build --target=runner --build-arg=VERSION=3.28 \
DOCKER_BUILDKIT=1 docker build --target=runner --build-arg=VERSION=3.28-gdal3.6 \
--build-arg="GEOMAPFISH_VERSION=${TAG}" \
--tag="camptocamp/geomapfish-qgisserver:gmf${TAG}-qgis3.28" \
--tag="camptocamp/geomapfish-qgisserver:gmf${TAG}-qgis3.28-gdal3.6" \
docker/qgisserver

WORKSPACE=$1
Expand Down
2 changes: 1 addition & 1 deletion docker/qgisserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RUN --mount=type=bind,from=poetry,source=/tmp,target=/poetry \
pip install --disable-pip-version-check --no-deps --requirement=/poetry/requirements-dev.txt

# hadolint ignore=DL3022
COPY --from=camptocamp/geomapfish-tools /opt/c2cgeoportal/commons/c2cgeoportal_commons/testing \
COPY --from=camptocamp/geomapfish /opt/c2cgeoportal/commons/c2cgeoportal_commons/testing \
/opt/c2cgeoportal/commons/c2cgeoportal_commons/testing
ENV PYTHONPATH /var/www/plugins:/usr/local/share/qgis/python/:/opt

Expand Down
2 changes: 1 addition & 1 deletion docker/test-mapserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM camptocamp/mapserver:8.0
FROM camptocamp/mapserver:8.0-gdal3.6
LABEL maintainer Camptocamp "info@camptocamp.com"

RUN --mount=type=cache,target=/var/lib/apt/lists \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ services:
- PGOPTIONS

mapserver:
image: camptocamp/mapserver:8.0
image: camptocamp/mapserver:8.0-gdal3.6
user: www-data
restart: unless-stopped
entrypoint: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ TILECLOUDCHAIN_INTERNAL_PORT=8080
MAPSERVER_URL=http://mapserver:8080/
TINYOWS_URL=http://tinyows:8080/
QGISSERVER_URL=http://qgisserver:8080/mapserv_proxy
QGIS_VERSION=3.28
QGIS_VERSION=3.28-gdal3.6
POSTGRES_TAG=13-postgis-3

DEVSERVER_HOST=webpack_dev_server:8080
Expand Down
Loading