forked from Project-OSRM/osrm-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
20 changed files
with
355 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: build and publish container image | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
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 }} | ||
|
||
- name: Docker meta - debug | ||
id: metadebug | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
flavor: | | ||
latest=true | ||
suffix=-debug,onlatest=true | ||
- name: Docker meta - assertions | ||
id: metaassertions | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
flavor: | | ||
latest=true | ||
suffix=-assertions,onlatest=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 - debug | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
file: ./docker/Dockerfile | ||
tags: ${{ steps.metadebug.outputs.tags }} | ||
build-args: | | ||
DOCKER_TAG=${{ join(steps.metadebug.outputs.tags ) }} | ||
- name: Build container image - assertions | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
file: ./docker/Dockerfile | ||
tags: ${{ steps.metaassertions.outputs.tags }} | ||
build-args: | | ||
DOCKER_TAG=${{ join(steps.metaassertions.outputs.tags ) }} | ||
# build and publish "normal" image as last to get it listed on top | ||
- name: Build container image - normal | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
file: ./docker/Dockerfile | ||
tags: ${{ steps.meta.outputs.tags }} | ||
build-args: | | ||
DOCKER_TAG=${{ join(steps.meta.outputs.tags ) }} | ||
Oops, something went wrong.