-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 1.12 KB
/
docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the dynamic Docker image
run: docker build -t neobility/osrm-backend-docker dynamic
- name: Push dynamic Docker image
run: docker push neobility/osrm-backend-docker
- name: Build the static Romania Docker image
run: docker build --build-arg MAP_URL=https://download.geofabrik.de/europe/romania-latest.osm.pbf -t neobility/osrm-backend-docker:romania prebuilt
- name: Push static Romania Docker image
run: docker push neobility/osrm-backend-docker:romania
- name: Build the merged Docker image
run: docker build -t neobility/osrm-backend-docker:merged -f ./tools/Dockerfile-merged ./tools/
- name: Push merged Docker image
run: docker push neobility/osrm-backend-docker:merged