Docker Image CI - mapme-spatial #21
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: Docker Image CI - mapme-spatial | |
on: | |
workflow_dispatch: null | |
schedule: | |
- cron: "0 4 * * *" | |
push: | |
paths: ['dockerfiles/mapme-spatial.Dockerfile', '.github/workflows/docker-mapme-spatial.yml', 'scripts/install_sysdeps.sh', 'scripts/install_rspatial.sh'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
if: github.repository == 'mapme-initiative/mapme-docker' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: Build the (mapme-spatial) Docker image | |
if: github.repository == 'mapme-initiative/mapme-docker' | |
run: docker build -f dockerfiles/mapme-spatial.Dockerfile . --tag ghcr.io/mapme-initiative/mapme-docker:mapme-spatial | |
- name: Publish (mapme-spatial) | |
if: github.repository == 'mapme-initiative/mapme-docker' | |
run: docker push ghcr.io/mapme-initiative/mapme-docker:mapme-spatial |