Skip to content

Commit

Permalink
workflow tweaks to update dockerhub description again
Browse files Browse the repository at this point in the history
  • Loading branch information
heavygee committed Oct 7, 2024
1 parent 8e851bc commit df79672
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
docker build -t heavygee/hello-dalle-discordbot:latest .
docker tag heavygee/hello-dalle-discordbot:latest heavygee/hello-dalle-discordbot:$version
echo "Docker images tagged with $version and latest"
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
echo ${{ secrets.DOCKER_PASSWORD2 }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker push heavygee/hello-dalle-discordbot:latest
docker push heavygee/hello-dalle-discordbot:$version
Expand All @@ -80,11 +80,13 @@ jobs:
if: success()
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD2 }}
run: |
cat dockerhub_readme.md | jq -Rs '{ "description": . }' > dockerhub_readme.json
curl -X PATCH \
echo "Updating DockerHub README with the following content:"
cat dockerhub_readme.json
curl -v -X PATCH \
-u $DOCKERHUB_USERNAME:$DOCKERHUB_PASSWORD \
-H "Content-Type: application/json" \
-d @dockerhub_readme.json \
https://hub.docker.com/v2/repositories/heavygee/hello-dalle-discordbot/
https://hub.docker.com/v2/repositories/heavygee/hello-dalle-discordbot/
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hello-dalle-discordbot",
"version": "1.10.1",
"version": "1.10.2",
"description": "Hello Dall-E will produce welcome images for your new users. Now with a wildcard that will 'prompt different' as you specify",
"main": "bot.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions version_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@
"1.10.1": {
"description": "workflow tweaks to update dockerhub description",
"changelog_url": "https://github.com/heavygee/hello-dalle-discordbot/releases/tag/v1.10.1"
},
"1.10.2": {
"description": "workflow tweaks to update dockerhub description again",
"changelog_url": "https://github.com/heavygee/hello-dalle-discordbot/releases/tag/v1.10.2"
}
}

0 comments on commit df79672

Please sign in to comment.