oyvindberg / typo

Typed Postgresql integration for Scala. Hopes to avoid typos
https://oyvindberg.github.io/typo/
MIT License
101 stars 11 forks source link

Fix setting latest tag for integration-test Docker image #60

Closed sbrunk closed 1 year ago

sbrunk commented 1 year ago

See https://github.com/oyvindberg/typo/pull/59

sbrunk commented 1 year ago

Now the workflow hasn't been triggered again because there's no change in the Dockerfile and we filter the trigger 🙈

https://github.com/oyvindberg/typo/blob/58d91f4e82538fed649c8d6a3f30fb4c44b88536/.github/workflows/docker.yml#L4-L7

Which usually makes sense as we don't want this to be built every time, but now it's still not tagged latest. You could comment lines 6 and 7 and push to main and then revert, or manually tag and push that tag like so:

docker pull ghcr.io/oyvindberg/typo/integration-test:main
docker tag ghcr.io/oyvindberg/typo/integration-test:main ghcr.io/oyvindberg/typo/integration-test:latest
docker push ghcr.io/oyvindberg/typo/integration-test:latest

But then you'll need to authenticate first to ghcr: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry

oyvindberg commented 1 year ago

I'll try to push a dummy commit, and then try to change tag from main to latest :)