Skip to content

Commit

Permalink
fix container image
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <[email protected]>
  • Loading branch information
bluebrown committed Apr 5, 2022
1 parent 0965b68 commit e54131d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ver=0.1.0
bindir=bin
container_cli=podman
container_cli=docker
cmd_dir=./cmd/

ldflags=-X 'main.version=$(ver)' -X 'main.commit=$(shell git rev-parse HEAD)'
Expand All @@ -24,7 +24,7 @@ bindir:
mkdir -p $(bindir)

image:
$(container_cli) build --build-arg ldflags="$(ldflags)" -t bluebrown/tpl -t bluebrown/tpl:$(ver) .
$(container_cli) build --file assets/container/Dockerfile --build-arg ldflags="$(ldflags)" -t bluebrown/tpl -t bluebrown/tpl:$(ver) .

push:
$(container_cli) push bluebrown/tpl
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Next to the builtin functionality [Sprig functions](http://masterminds.github.io
Download the binary from the [release page](https://github.com/bluebrown/tpl/releases). For example

```bash
curl -fsSLO https://github.com/bluebrown/tpl/releases/download/v1.0.0/tpl-amd64-static.tar.gz
curl -fsSLO https://github.com/bluebrown/go-template-cli/releases/download/v0.1.0/tpl-amd64-static.tar.gz
tar -xzf tpl-amd64-static.tar.gz
mv tpl-0.1.0-amd64-static /usr/local/bin/tpl
```
Expand All @@ -90,7 +90,7 @@ go install github.com/bluebrown/tpl
The binary is also available as a [docker image](https://hub.docker.com/repository/docker/bluebrown/tpl).

```shell
curl -s https://jsonplaceholder.typicode.com/users/1 | docker run -i bluebrown/tpl '{{ table . }}'
curl -s curl -s https://jsonplaceholder.typicode.com/todos | docker run -i bluebrown/tpl '{{ table . }}'
```

### From source
Expand Down

0 comments on commit e54131d

Please sign in to comment.