From abaa51938918fff0e3701f76aaf9ad58cc5243f9 Mon Sep 17 00:00:00 2001 From: Hannah Bast Date: Fri, 22 Sep 2023 20:35:52 +0200 Subject: [PATCH] Add workflow that builds Docker image an runs it --- .github/workflows/docker-build.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/docker-build.yml diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 00000000..40bbf3d8 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,31 @@ +name: Docker build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + merge_group: + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + dockerfile: [ Dockerfile] + + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + with: + submodules: 'recursive' + + - name: Docker build + run: | + docker build -f ${{matrix.dockerfile}} -t osm2rdf . + docker run --rm osm2rdf