Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 1cdaa4e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/run-tests.yml
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1cdaa4e

Please sign in to comment.