diff options
author | 2023-04-21 23:36:30 -0700 | |
---|---|---|
committer | 2023-04-21 23:36:30 -0700 | |
commit | 434fc43c4b5403b38db408621a286096806c4036 (patch) | |
tree | 7e17c4bc4907bf0191d3652935ae17c4dcf080fb /README.md | |
parent | bfa7ecb139e9255484b98595714a6e88c5e988e1 (diff) | |
download | sally-434fc43c4b5403b38db408621a286096806c4036.tar.gz sally-434fc43c4b5403b38db408621a286096806c4036.tar.zst sally-434fc43c4b5403b38db408621a286096806c4036.zip |
ci: Publish Docker image to ghcr.io on release (#82)
Adds a workflow that builds and publishes a Docker image
to ghcr.io based on the Dockerfile in the root of the repository.
This will become available at
https://github.com/uber-go/sally/pkgs/container/sally.
Users will be able to import it by using `ghcr.io/uber-go/sally:$tag`
with `docker pull` or in the `FROM` clause of their own Docker file.
As a test for this, I published it manually to my own fork.
The image is at https://github.com/abhinav/sally/pkgs/container/sally.
With that, I ran the following Dockerfile:
FROM ghcr.io/abhinav/sally:master
COPY sally.yaml /
And it worked as expected.
Diffstat (limited to '')
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5,10 +5,15 @@ to serve vanity import paths for Go modules. ## Installation +To build sally from source, use: + ```bash go install go.uber.org/sally@latest ``` +Alternatively, get a pre-built Docker image from +https://github.com/uber-go/sally/pkgs/container/sally. + ## Usage Create a YAML file with the following structure: |