Update gdal worker image to Windmill 1.295.4 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish windmill-gdal docker image | |
on: | |
push: | |
paths: | |
- workers/gdal/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and publish latest docker image | |
uses: elgohr/Publish-Docker-Github-Action@v4 | |
with: | |
name: sourcepole/windmill-gdal | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
tags: latest | |
workdir: workers/gdal/ | |
- name: Check whether version file has changed | |
uses: dorny/paths-filter@v2 | |
id: paths_filter | |
with: | |
base: ${{ github.ref }} | |
filters: | | |
gdal_version: | |
- 'workers/gdal/version.txt' | |
- name: Get version tag from file | |
id: get_tag | |
if: steps.paths_filter.outputs.gdal_version == 'true' | |
run: | | |
version_tag=$(cat workers/gdal/version.txt || echo 'latest') | |
echo "Read version file: $version_tag" | |
echo "tag=$version_tag" >>$GITHUB_OUTPUT | |
- name: Build and publish tagged docker image | |
uses: elgohr/Publish-Docker-Github-Action@v4 | |
if: steps.paths_filter.outputs.gdal_version == 'true' | |
with: | |
name: sourcepole/windmill-gdal | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
tags: ${{ steps.get_tag.outputs.tag }} | |
workdir: workers/gdal/ |