Skip to content

Commit

Permalink
Publish to docker hub (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans authored Nov 9, 2021
1 parent 9bb9fbc commit a83c27e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update Docker Hub Description
on:
workflow_dispatch:
push:
branches:
- main
paths:
- README.md
- .github/workflows/dockerhub-description.yml

jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: peterevans/kdef
short-description: ${{ github.event.repository.description }}
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
with:
go-version: 1.17

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ brews:

dockers:
- image_templates:
# - "peterevans/kdef:{{ .Version }}" # TODO
- "peterevans/kdef:{{ .Version }}"
- "ghcr.io/peter-evans/kdef:{{ .Version }}"
build_flag_templates:
- "--pull"
Expand Down

0 comments on commit a83c27e

Please sign in to comment.