Skip to content

Commit

Permalink
fix: docker images
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Aug 7, 2021
1 parent dae52e8 commit b7edd1a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,30 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ~1.16
-
name: Run GoReleaser
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Login to Docker Hub
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v1
with:
username: caarlos0
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v1
with:
registry: ghcr.io
username: caarlos0
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser-pro
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ includes:
url: caarlos0/goreleaserfiles/main/package.yml
- from_url:
url: caarlos0/goreleaserfiles/main/release.yml
- from_url:
url: caarlos0/goreleaserfiles/main/docker.yml

furies:
- account: caarlos0
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,29 @@ Usage: `jsonfmt` or `jsonfmt -w` to autofix the issues.
brew install caarlos0/tap/jsonfmt
```

**snapcraft**:
**docker**:

```sh
snap install jsonfmt
docker run -v $PWD:/data --workdir /data caarlos0/jsonfmt -h
```

**docker**:
**apt**:

```sh
docker run -v $PWD:/data --workdir /data caarlos0/jsonfmt -h
echo 'deb [trusted=yes] https://repo.caarlos0.com/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install jsonfmt
```

**yum**:

```sh
echo '[caarlos0]
name=caarlos0
baseurl=https://repo.caarlos0.com/yum/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install jsonfmt
```

**deb/rpm**:
Expand Down

0 comments on commit b7edd1a

Please sign in to comment.