Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New VROOM release v1.15.0 #82

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/check_release.yml
@@ -0,0 +1,56 @@
name: Check for new VROOM release

on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
push:
branches:
- nn-gha-check-release

jobs:
check_tz:
name: Check if VROOM has a new release we don't have yet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run script
shell: bash
run: |
set -e

git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

latest_vroom_tag="v1.15.0" #$(curl --silent -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/VROOM-Project/vroom/tags | jq -r '.[0].name')
latest_this_tag=$(git describe --tags --abbrev=0)

# first check vroom
if [[ $latest_vroom_tag == $latest_this_tag ]]; then
"All up-to-date."
exit 0
fi

echo "New Vroom release available: ${latest_vroom_tag}"
new_branch="gha-vroom-release-${latest_vroom_tag}"
git checkout -b $new_branch

# update the README
sed -i "s/v1.14.0/v1.15.0/g" README.md

# commit and push
git commit -am "release ${latest_vroom_tag}"
git push origin "${new_branch}"

# open new PR
body=$(echo -e "Update CHANGELOG with\n- [vroom](https://github.com/VROOM-Project/vroom/blob/master/CHANGELOG.md)\n- [vroom-express](https://github.com/VROOM-Project/vroom-express/blob/master/CHANGELOG.md)\n\nCreated by workflow run [#${WORKFLOW_RUN_ID}](https://github.com/valhalla/valhalla/actions/runs/${WORKFLOW_RUN_ID}).")
gh pr create --base master --head $new_branch --title "New VROOM release ${latest_vroom_tag}" --body "${body}"

exit 1
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_RUN_ID: ${{ github.run_id }}
WORKFLOW_JOB_ID: ${{ github.job }}
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -2,7 +2,7 @@

[![Master push](https://github.com/VROOM-Project/vroom-docker/actions/workflows/master_push.yml/badge.svg)](https://github.com/VROOM-Project/vroom-docker/actions/workflows/master_push.yml)

**Note**, this repo is migrating to Github's container registry, releases from v1.14.0 on will not be published at hub.docker.com.
**Note**, this repo is migrating to Github's container registry, releases from v1.15.0 on will not be published at hub.docker.com.

This image includes all dependencies and projects needed to successfully run an instance of [`vroom-express`](https://github.com/VROOM-Project/vroom-express) on top of [`vroom`](https://github.com/VROOM-Project/vroom). Within 2 minutes you'll have a routing optimization engine running on your machine.

Expand All @@ -11,12 +11,12 @@ docker run -dt --name vroom \
--net host \ # or set the container name as host in config.yml and use --port 3000:3000 instead, see below
-v $PWD/conf:/conf \ # mapped volume for config & log
-e VROOM_ROUTER=osrm \ # routing layer: osrm, valhalla or ors
ghcr.io/vroom-project/vroom-docker:v1.14.0
ghcr.io/vroom-project/vroom-docker:v1.15.0
```

If you want to build the image yourself, run a

`docker build -t ghcr.io/vroom-project/vroom-docker:v1.14.0 --build-arg VROOM_RELEASE=v1.14.0 --build-arg VROOM_EXPRESS_RELEASE=v0.12.0 .`
`docker build -t ghcr.io/vroom-project/vroom-docker:v1.15.0 --build-arg VROOM_RELEASE=v1.15.0 --build-arg VROOM_EXPRESS_RELEASE=v0.12.0 .`

> **Note**, you should have access to a self-hosted instance of OSRM, Valhalla or OpenRouteService for the routing server.

Expand Down Expand Up @@ -47,7 +47,7 @@ Add a `-v $PWD/vroom-conf:/conf` to your `docker run` command.

If you prefer to build the image from source, there are 2 build arguments:

- `VROOM_RELEASE`: specifies VROOM's git [branch](https://github.com/VROOM-Project/vroom/branches), [commit hash](https://github.com/VROOM-Project/vroom/commits/master) or [release](https://github.com/VROOM-Project/vroom/releases) (e.g. `v1.14.0`) to install in the container
- `VROOM_RELEASE`: specifies VROOM's git [branch](https://github.com/VROOM-Project/vroom/branches), [commit hash](https://github.com/VROOM-Project/vroom/commits/master) or [release](https://github.com/VROOM-Project/vroom/releases) (e.g. `v1.15.0`) to install in the container
- `VROOM_EXPRESS_RELEASE`: specifies `vroom-express`'s git [branch](https://github.com/VROOM-Project/vroom-express/branches), [commit hash](https://github.com/VROOM-Project/vroom-express/commits/master) or [release](https://github.com/VROOM-Project/vroom-express/releases) (e.g. `v0.12.0`) to install in the container

> **Note**, not all versions are compatible with each other
Expand Down