Skip to content

Commit c351bfc

Browse files
Add CI for Docker
1 parent e311ee3 commit c351bfc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/osrm-backend.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ jobs:
4747
./scripts/format.sh && ./scripts/error_on_dirty.sh
4848
node ./scripts/validate_changelog.js
4949
npm run docs && ./scripts/error_on_dirty.sh
50+
51+
docker-image:
52+
needs: format-taginfo-docs
53+
runs-on: ubuntu-22.04
54+
steps:
55+
- name: Check out the repo
56+
uses: actions/checkout@v3
57+
- name: Docker build
58+
run: |
59+
docker build -f docker/Dockerfile .
5060
5161
build-test-publish:
5262
needs: format-taginfo-docs

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ RUN apt-get update && \
1010
COPY . /src
1111
WORKDIR /src
1212

13-
RUN NPROC=${BUILD_CONCURRENCY:-$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)} echo "Building OSRM ${DOCKER_TAG}" && \
13+
RUN NPROC=${BUILD_CONCURRENCY:-$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1)} && \
14+
echo "Building OSRM ${DOCKER_TAG}" && \
1415
git show --format="%H" | head -n1 > /opt/OSRM_GITSHA && \
1516
echo "Building OSRM gitsha $(cat /opt/OSRM_GITSHA)" && \
1617
mkdir -p build && \

0 commit comments

Comments
 (0)