Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Also build a linux image for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 30, 2020
1 parent 83f0c16 commit 1e0584c
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .docker/qgis-linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM fedora:32
MAINTAINER Matthias Kuhn <[email protected]>
ARG QGIS_URL

RUN dnf -y install \
unzip \
qt5-devel \
clang \
ninja-build \
flex \
bison \
geos-devel \
gdal-devel \
libzip-devel \
sqlite-devel \
protobuf-devel \
qca-qt5-devel \
proj-devel \
gsl-devel \
python3-pyqt5-sip \
python3-qt5-devel \
python3-qscintilla-qt5 \
exiv2-devel \
qwt-qt5-devel \
qtkeychain-qt5-devel \
qscintilla-qt5-devel \
spatialindex-devel \
libspatialite-devel \
protobuf-lite-devel \
libpq-devel


RUN curl -LJ -o QGIS.tar.gz $QGIS_URL && \
tar xzf QGIS.tar.gz && \
mkdir build && \
cd build && \
cmake -GNinja ../QGIS-* && \
ninja install && \
cd .. && \
rm -rf build && \
rm -rf ../QGIS-* && \
rm ../QGIS.tar.gz

38 changes: 38 additions & 0 deletions .github/workflows/qgis-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build QGIS

on:
push:
branches:
- '**'
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master

- name: Extract branch or tag name
id: extract_ref
run: echo ::set-output name=ref::${GITHUB_REF#refs/*/}

- name: Extract QGIS url
id: extract_qgis
run: |
export $(grep URL_qgis= recipes/qgis/recipe.sh)
echo ::set-output name=url::$URL_qgis
- name: Build
run: |
docker build --build-arg QGIS_URL=${{ steps.extract_qgis.outputs.url }} -t opengisch/qfield-test-docker:${{ steps.extract_ref.outputs.ref }} .docker/qgis-linux
- name: Deploy to dockerhub
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push opengisch/qfield-test-docker:${{ steps.extract_ref.outputs.ref }}

0 comments on commit 1e0584c

Please sign in to comment.