An image based on Go official image Go 1.19.5 official image packaged with Encore.dev framework binaries.
For more details, check it on Docker Hub.
Run to pull the image from Docker Hub
$ docker pull fibrasek/encore-go:0.1
Or you can clone this repository and build it locally:
$ git clone [email protected]:Fibrasek/encore-go.git
$ cd encore-go
$ docker build -t <name>:<tag> .
And then to test it, run:
$ docker run fibrasek/encore-go:0.1 encore version
# or if you build it locally, use the name that you chose
$ docker run <name>:<tag> encore version
# it should output the result of the command `encore version` (at the time this was written, v1.13.2)
encore version v1.13.2
In those examples, you can test with any command from Encore.dev CLI.
I wrote this to use in some pipelines I have in a Bitbucket repo, but it could be easily used in Github Actions too. For instance, here's an example of how easily I can run the tests of my project in my pipelines:
image: fibrasek/encore-go:0.1
pipelines:
default:
- step:
name: Test
script:
- encore auth login --auth-key=$ENCORE_AUTH_KEY
- encore test ./...
That's it, be creative :)
Feel free to open an issue or pull request with any bugs, or improvements as you find :)