Skip to content

Commit

Permalink
Add step to login to Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
ymtdzzz committed Jun 30, 2024
1 parent c213475 commit e428122
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
with:
go-version-file: go.mod
cache: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v6
with:
version: '~> v1'
Expand Down
6 changes: 6 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ brews:
dockers:
- image_templates:
- 'ymtdzzz/otel-tui:{{ .Tag }}-amd64'
- 'ymtdzzz/otel-tui:latest-amd64'
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
dockerfile: Dockerfile.goreleaser
- image_templates:
- 'ymtdzzz/otel-tui:{{ .Tag }}-arm64'
- 'ymtdzzz/otel-tui:latest-arm64'
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -63,3 +65,7 @@ docker_manifests:
image_templates:
- 'ymtdzzz/otel-tui:{{ .Tag }}-amd64'
- 'ymtdzzz/otel-tui:{{ .Tag }}-arm64'
- name_template: 'ymtdzzz/otel-tui:latest'
image_templates:
- 'ymtdzzz/otel-tui:latest-amd64'
- 'ymtdzzz/otel-tui:latest-arm64'

0 comments on commit e428122

Please sign in to comment.