Skip to content

Commit

Permalink
docs: add github action workflows to update README on DockerHub
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
CodeLieutenant committed Nov 28, 2024
1 parent 01e0694 commit 1c60906
Show file tree
Hide file tree
Showing 3 changed files with 371 additions and 36 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
description: ''
type: string
platforms:
default: linux/amd64,linux/arm64
default: linux/amd64,linux/arm64/v8
required: false
description: ''
type: string
Expand All @@ -34,7 +34,7 @@ on:
required: false
type: string
platforms:
default: linux/amd64,linux/arm64
default: linux/amd64,linux/arm64/v8
required: false
type: string
image:
Expand Down Expand Up @@ -66,8 +66,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push API
uses: docker/build-push-action@v5
with:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update Docker Hub Description
on:
push:
branches:
- master
paths:
- README.md
- .github/workflows/dockerhub-description.yml
jobs:
description:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: scylladb/cassandra-stress
short-description: ${{ github.event.repository.description }}
enable-url-completion: true
Loading

0 comments on commit 1c60906

Please sign in to comment.