Skip to content

Commit

Permalink
ci: login to DockerHub before building images
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Dec 11, 2023
1 parent 0fcf0ad commit 5727cfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser
id: run-goreleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ builds:

dockers:
- image_templates:
- "ctfer-io/{{ .ProjectName }}:latest"
- "ctfer-io/{{ .ProjectName }}:{{ .Tag }}"
- "ctferio/{{ .ProjectName }}:latest"
- "ctferio/{{ .ProjectName }}:{{ .Tag }}"
build_flag_templates:
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
Expand Down

0 comments on commit 5727cfe

Please sign in to comment.