Skip to content

Commit

Permalink
Use GH actions to build container image (#341)
Browse files Browse the repository at this point in the history
* build frontend container image via GH actions
  • Loading branch information
hoerup committed Sep 30, 2021
1 parent 5920fff commit 4a9f214
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/osrm-frontend-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build and publish container image
on:
push:
branches:
- gh-pages

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2


- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=true
- 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: ${{ steps.meta.outputs.tags }}




0 comments on commit 4a9f214

Please sign in to comment.