From ef27e1c0a6b6b9aa01ba502ada6f7c55e3123748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torben=20H=C3=B8rup?= Date: Mon, 27 Sep 2021 21:08:28 +0200 Subject: [PATCH] Add GH actions script for docker image --- .github/workflows/osrm-backend-docker.yml | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/osrm-backend-docker.yml diff --git a/.github/workflows/osrm-backend-docker.yml b/.github/workflows/osrm-backend-docker.yml new file mode 100644 index 000000000..6adb71db7 --- /dev/null +++ b/.github/workflows/osrm-backend-docker.yml @@ -0,0 +1,30 @@ +name: build and publish container image +on: + create: + tags: + - v* + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + + + - name: Log in to GitHub Docker Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build container image + uses: docker/build-push-action@v2 + with: + push: true + file: ./docker/Dockerfile + tags: ghcr.io/${{ github.repository }}/osrm-backend:${{ env.GITHUB_REF }} + + + \ No newline at end of file