Skip to content

Commit

Permalink
docker-credential-gcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jun 19, 2022
1 parent 64c771a commit 3b12230
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ builds:
- arm64
snapshot:
name_template: "{{ incpatch .Version }}-next"
archives:
- files:
- src: scripts/docker-credential-gcloud
dst: "."
strip_parent: true
changelog:
sort: asc
filters:
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,24 @@ echo $PATH
/home/alex/go/bin:/opt/google-cloud-sdk/bin/
```

### Install with go
If you do not install via the release, you must manually install `scripts/docker-credential-gcloud`.

### Install from release

```
go install github.com/gartnera/gcloud@latest
curl -L https://github.com/gartnera/gcloud/releases/download/v0.0.7/gcloud_0.0.7_linux_amd64.tar.gz | tar xz -C /usr/local/bin
```

### Install from release
or

```
curl -L https://github.com/gartnera/gcloud/releases/download/v0.0.1/gcloud_0.0.1_linux_amd64.tar.gz | tar xz -C /usr/local/bin
wget -O - https://github.com/gartnera/gcloud/releases/download/v0.0.7/gcloud_0.0.7_linux_amd64.tar.gz | tar xz -C /usr/local/bin
```

or
### Install with go

```
wget -O - https://github.com/gartnera/gcloud/releases/download/v0.0.1/gcloud_0.0.1_linux_amd64.tar.gz | tar xz -C /usr/local/bin
go install github.com/gartnera/gcloud@latest
```

## Supported Commands
Expand Down
3 changes: 3 additions & 0 deletions scripts/docker-credential-gcloud
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

gcloud auth docker-helper $@

0 comments on commit 3b12230

Please sign in to comment.