Skip to content

Update docker-build.yml #10

Update docker-build.yml

Update docker-build.yml #10

Workflow file for this run

name: "Docker build sdi-consistence-check"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checking out"
uses: "actions/checkout@v1"
- name: "build image"
run: |
make docker-build
- name: "Logging in docker.io"
if: github.repository == 'georchestra/sdi-consistence-check'
uses: azure/docker-login@v1
with:
username: '${{ secrets.DOCKER_HUB_USERNAME }}'
password: '${{ secrets.DOCKER_HUB_PASSWORD }}'
- name: "Push image to docker hub"
if: github.repository == 'georchestra/sdi-consistence-check'
run: |
make docker-push
- name: "Update Docker Hub Description"
if: github.ref == 'refs/heads/master' && github.repository == 'georchestra/sdi-consistence-check' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request'
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
repository: georchestra/sdi-consistence-check
readme-filepath: ./DOCKER_HUB.md
short-description: 'SDI consistence check module for the geOrchestra SDI'