2022-10-07 19:16:42 +02:00
|
|
|
# Update Docker Hub repo description
|
2021-02-17 18:53:15 +01:00
|
|
|
|
2022-10-07 19:16:42 +02:00
|
|
|
You can update the [Docker Hub repository description](https://docs.docker.com/docker-hub/repos/)
|
|
|
|
using a third party action called [Docker Hub Description](https://github.com/peter-evans/dockerhub-description)
|
2021-02-17 18:53:15 +01:00
|
|
|
with this action:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-01-18 14:57:27 +01:00
|
|
|
- 'main'
|
2021-02-17 18:53:15 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2022-05-28 18:36:30 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-02-17 18:53:15 +01:00
|
|
|
-
|
|
|
|
name: Set up QEMU
|
2022-05-05 19:24:32 +02:00
|
|
|
uses: docker/setup-qemu-action@v2
|
2021-02-17 18:53:15 +01:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2022-05-05 19:24:32 +02:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2021-02-17 18:53:15 +01:00
|
|
|
-
|
2022-10-07 19:16:42 +02:00
|
|
|
name: Login to Docker Hub
|
2022-05-05 19:24:32 +02:00
|
|
|
uses: docker/login-action@v2
|
2021-02-17 18:53:15 +01:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Build and push
|
2022-05-05 19:24:32 +02:00
|
|
|
uses: docker/build-push-action@v3
|
2021-02-17 18:53:15 +01:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: user/app:latest
|
|
|
|
-
|
|
|
|
name: Update repo description
|
|
|
|
uses: peter-evans/dockerhub-description@v2
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
repository: user/app
|
|
|
|
```
|