Closed iwpnd closed 4 months ago
Totals | |
---|---|
Change from base Build 86cf1919d-PR-992: | 0.0% |
Covered Lines: | 6551 |
Relevant Lines: | 14024 |
@iwpnd thanks for jumping on this! I think you updated the wrong action though. I believe you meant to update https://github.com/go-spatial/tegola/blob/master/.github/workflows/on_pr_push.yml but instead updated the release action.
The failing docker build is part of on_release
. If you do not want to build at all in PRs we can also remove the
on:
pull_request:
from the release workflow. In that case we can also skip the check on whether the secrets are defined, because it only runs after the PR is merged. @ARolek
@iwpnd ah yes, you're right! I remember when this was added years ago. It had to do with errors popping up during release that didn't get caught during the PR. So let's leave the check. Your changes LGTM! π
@iwpnd it appears we have a syntax error in the workflow file:
Edit: Workflow run: https://github.com/go-spatial/tegola/actions/runs/9751755854
@iwpnd it appears we have a syntax error in the workflow file:
Edit: Workflow run: https://github.com/go-spatial/tegola/actions/runs/9751755854
Iβll take a look in the morning. Seems I donβt have access to secrets in the if statement after all. π€
sorry for the noise ππ»
Iβll take a look in the morning. Seems I donβt have access to secrets in the if statement after all. π€ sorry for the noise ππ»
No worries! I was hoping this worked as it was a clean solution.
Totals | |
---|---|
Change from base Build c7296fdf0: | 0.0% |
Covered Lines: | 6551 |
Relevant Lines: | 14024 |
Totals | |
---|---|
Change from base Build c7296fdf0: | 0.0% |
Covered Lines: | 6551 |
Relevant Lines: | 14024 |
okay TIL i dont have access to secrets, but I can export secrets to the environment variables and use that instead. π
@ARolek now when we merge the secrets should be populated in those environment variables and the docker build should execute successfully and not be skipped.
Totals | |
---|---|
Change from base Build c7296fdf0: | 0.0% |
Covered Lines: | 6551 |
Relevant Lines: | 14024 |
okay TIL i dont have access to secrets, but I can export secrets to the environment variables and use that instead.
Interesting! Still looks clean to me ;-)
Totals | |
---|---|
Change from base Build c7296fdf0: | 0.0% |
Covered Lines: | 6551 |
Relevant Lines: | 14024 |
Totals | |
---|---|
Change from base Build c7296fdf0: | 0.0% |
Covered Lines: | 6551 |
Relevant Lines: | 14024 |
as discussed in #995 docker build should only run if
secrets.DOCKERHUB_USERNAME
andsecrets.DOCKERHUB_TOKEN
are present.