Skip to content

Commit

Permalink
Task/select brouter version (#20)
Browse files Browse the repository at this point in the history
* checkout the given branch/tag when building (fallback=master)
* pass version string in action
* version is stored as variable in GitHub repository settings
  • Loading branch information
mjaschen authored May 4, 2024
1 parent 9f5caea commit 89255f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: BROUTER_VERSION=${{ vars.BROUTER_VERSION }}
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

FROM alpine/git as clone

ARG BROUTER_VERSION=master

WORKDIR /src

RUN ["git", "clone", "https://github.com/abrensch/brouter.git"]

WORKDIR /src/brouter

RUN git checkout "$BROUTER_VERSION"

RUN ["echo", "BRouter commit:"]
RUN ["git", "log", "-n", "1", "--pretty=format:%H"]

Expand Down

0 comments on commit 89255f0

Please sign in to comment.