Skip to content

Commit

Permalink
[CI] Fix release job
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Nov 14, 2024
1 parent e84ffa7 commit faa0841
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 7 deletions.
22 changes: 22 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@ tests:
matrix:
- QGIS_FLAVOR: ['ltr', 'release', '3.28']

# --------
# Build
# -------

build:
image: ${REGISTRY_URL}/factory-ci-runner:python
stage: build
script:
- source ~/.bashrc
- make dist deliver
environment:
name: snap
tags:
- infrav3-plain
only:
refs:
- tags
- master
except:
- schedules
- triggers

# Docker build
include: '/docker/.gitlab-ci.yml'

3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

## Unreleased

## 1.9.0 - 2024-11-13

* Remove support for Qgis < 3.28
* Requires python 3.10+
* Remove dependency on 3liz/qgis-platform images for tests
* Remove deprecated store apis:
- `/store/`
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ PYTHON_PKG=pyqgiswps pyqgisservercontrib

TESTDIR=tests/unittests

PYPISERVER:=storage

dirs:
mkdir -p $(DIST)

Expand All @@ -27,7 +29,7 @@ manifest: version
echo commitid=$(COMMITID) >> $(MANIFEST)

deliver:
twine upload -r storage $(DIST)/*
twine upload $(TWINE_OPTIONS) -r $(PYPISERVER) $(DIST)/*

dist: dirs manifest
rm -rf *.egg-info
Expand Down
2 changes: 1 addition & 1 deletion docker/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
factory.*.manifest
factory-*.manifest
5 changes: 3 additions & 2 deletions docker/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ deploy:snap:
image: ${REGISTRY_URL}/factory-ci-runner:build-package
stage: release
script:
- $FACTORY_SCRIPTS/release-image.sh qgis-wps-server-$QGIS_FLAVOR
- $FACTORY_SCRIPTS/push-to-docker-hub.sh --clean
- release-image qgis-wps-server-$QGIS_FLAVOR
- push-to-docker-hub --clean
environment:
name: production
when: manual
allow_failure: false
only:
refs:
- tags
Expand Down
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BUILD_ARGS += --build-arg REGISTRY_PREFIX=$(REGISTRY_PREFIX)

BUILDIMAGE:=$(NAME):$(FLAVOR)-$(COMMITID)

MANIFEST=factory.$(FLAVOR).manifest
MANIFEST=factory-$(FLAVOR).manifest

# Use buildkit
export DOCKER_BUILDKIT=1
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ build-backend = "setuptools.build_meta"
name = "py-qgis-wps"
description = "Py-Qgis-WPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium"
readme = "README.md"
requires-python = ">= 3.10"
requires-python = ">= 3.9"
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down

0 comments on commit faa0841

Please sign in to comment.