Skip to content
Permalink
Browse files

add option (label) to push docker image with QGIS built

  • Loading branch information
3nids authored and nyalldawson committed Feb 8, 2021
1 parent 4005768 commit 1cdaa4eb1e98e5ed4d66676989c257fef09f1a0d
Showing with 14 additions and 6 deletions.
  1. +14 −6 .github/workflows/run-tests.yml
@@ -59,12 +59,12 @@ jobs:
echo DOCKER_TAG: ${DOCKER_TAG}
echo CTEST_BUILD_NAME: ${CTEST_BUILD_NAME}
- name: Increase Docker base image size
# https://stackoverflow.com/questions/50140939/increase-docker-container-size-from-default-10gb-on-rhel7
run: |
sudo rm /etc/docker/daemon.json
echo '{"storage-opt": [ "dm.basesize=50G" ]}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
# - name: Increase Docker base image size
# # https://stackoverflow.com/questions/50140939/increase-docker-container-size-from-default-10gb-on-rhel7
# run: |
# sudo rm /etc/docker/daemon.json
# echo '{"storage-opt": [ "dm.basesize=50G" ]}' | sudo tee /etc/docker/daemon.json
# sudo service docker restart

- name: Build deps
run: |
@@ -116,6 +116,14 @@ jobs:
/root/QGIS/.docker/docker-qgis-build.sh
docker commit qgis_container qgis_image
- name: Push image
if: github.event_name == 'pull_request' && contains( github.event.pull_request.labels.*.name, 'Push Docker Image')
env:
GITHUB_PR_NUMBER: ${{github.event.number}}
run: |
docker commit qgis_container qgis/qgis-PR-build:PR${GITHUB_PR_NUMBER}
docker push qgis/qgis-PR-build:PR${GITHUB_PR_NUMBER}
- name: run unit tests
id: tests
run: docker-compose -f .docker/docker-compose-testing.yml run qgis-deps /root/QGIS/.docker/docker-qgis-test.sh

0 comments on commit 1cdaa4e

Please sign in to comment.