Skip to content

Commit 64cc52a

Browse files
committed
Workflow - set Docker Hub overview from readme
1 parent 436e731 commit 64cc52a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ jobs:
2222
- name: Build and push Docker image
2323
run: |
2424
TIMESTAMP=$(date +%s)
25+
REPOSITORY=${{ vars.DOCKER_USERNAME }}/kv
2526
2627
docker build . --file Dockerfile \
27-
--tag ${{ vars.DOCKER_USERNAME }}/kv:${TIMESTAMP} \
28-
--tag ${{ vars.DOCKER_USERNAME }}/kv:latest
28+
--tag ${REPOSITORY}:${TIMESTAMP} \
29+
--tag ${REPOSITORY}:latest
2930
30-
docker push ${{ vars.DOCKER_USERNAME }}/kv:${TIMESTAMP}
31-
docker push ${{ vars.DOCKER_USERNAME }}/kv:latest
31+
docker push ${REPOSITORY}:${TIMESTAMP}
32+
docker push ${REPOSITORY}:latest
3233
3334
- name: Update Docker Hub Description
34-
uses: peter-evans/dockerhub-description@v3
35+
uses: peter-evans/dockerhub-description@v4
3536
with:
3637
username: ${{ vars.DOCKER_USERNAME }}
3738
password: ${{ secrets.DOCKER_PAT }}
38-
repository: ${{ vars.DOCKER_USERNAME }}/kv
39+
repository: ${REPOSITORY}
3940
readme-filepath: ./README.md
40-
short-description: "A lightweight key-value store with HTTP API built using ReactPHP and SQLite"
41+
short-description: "Lightweight key-value store with HTTP API. Built using ReactPHP and SQLite"

0 commit comments

Comments
 (0)