Add GH actions script for docker image
This commit is contained in:
parent
34877482e6
commit
ef27e1c0a6
30
.github/workflows/osrm-backend-docker.yml
vendored
Normal file
30
.github/workflows/osrm-backend-docker.yml
vendored
Normal file
@ -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 }}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user