go-spatial / tegola

Tegola is a Mapbox Vector Tile server written in Go

Home Page:http://tegola.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v0.18.0 Docker image has no viewer UI

jchamberlain opened this issue · comments

As of the changes in #940/#941, the image that is pushed on release loads only the following HTML at /:

<pre>
<a href=".keep">.keep</a>
</pre>

I'm guessing this is because the "Publish Docker container" step does not include context: ., and thus is working on the Git context, which does not include the local filesystem changes like the addition of ui/dist.

@jchamberlain thanks for the report. There's one other report of someone having issues with the viewer: #942

Thanks @ARolek, I just left a comment there. It appears to be an unrelated issue: the output of tegola version always says "ui viewer: viewer not build" even when it did build successfully.

To follow up on @jchamberlain report, the following step in the CI appears to be where the issue is happening:

- name: Publish Docker edge container
if: github.ref == env.DEFAULT_BRANCH_REF
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ env.DOCKERHUB_ORG }}/${{ env.DOCKERHUB_REPO }}:edge
platforms: linux/amd64,linux/arm64
build-args: ${{ env.BUILD_ARGS }}

And the context @jchamberlain is talking about is documented here

@manastyretskyi can you take a quick look at this one? Seems like all we need to do is add context: . to the action.

@ARolek I will try to take a look at it later today