Skip to content

Commit

Permalink
Merge pull request peter-evans#31 from peter-evans/latest
Browse files Browse the repository at this point in the history
Add latest tag
  • Loading branch information
peter-evans authored Nov 14, 2020
2 parents 0551f2a + 3463030 commit 94dd92a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
DEFAULT_TAG=$IMAGE_NAME:$VERSION-${{ matrix.base-image }}
docker build ${{ matrix.base-image }} --file ${{ matrix.base-image }}/Dockerfile --tag $DEFAULT_TAG --label "org.opencontainers.image.version=$VERSION"
# Tag one of the base images to be the "latest"
[ "$VERSION" == "latest" ] && [ "${{ matrix.base-image }}" == "focal" ] && docker tag $DEFAULT_TAG $IMAGE_NAME:$VERSION
# Tag with the application tag (nominatim version)
APP_TAG=$(docker inspect $DEFAULT_TAG | jq -r '. | first | .ContainerConfig.Labels."app.tag"')
docker tag $DEFAULT_TAG $IMAGE_NAME:$VERSION-${{ matrix.base-image }}-$APP_TAG
Expand Down

0 comments on commit 94dd92a

Please sign in to comment.