File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,18 +31,34 @@ jobs:
3131 password : ${{ secrets.GITHUB_TOKEN }}
3232
3333 - name : Login to Docker Hub
34+ id : dockerhub-login
35+ continue-on-error : true
3436 uses : docker/login-action@v3
3537 with :
36- username : raphaelmansuy
38+ username : rmansuy
3739 password : ${{ secrets.DOCKERHUB_TOKEN }}
3840
41+ - name : Build image registry list
42+ id : image-list
43+ run : |
44+ IMAGES="ghcr.io/raphaelmansuy/edgeparse"
45+ if [[ "${{ steps.dockerhub-login.outcome }}" == "success" ]]; then
46+ IMAGES="$IMAGES
47+ docker.io/rmansuy/edgeparse"
48+ else
49+ echo "::warning::Docker Hub login failed — image will only be pushed to GHCR. Fix DOCKERHUB_TOKEN to also publish to Docker Hub."
50+ fi
51+ {
52+ echo "images<<EOF"
53+ echo "$IMAGES"
54+ echo "EOF"
55+ } >> "$GITHUB_OUTPUT"
56+
3957 - name : Extract metadata
4058 id : meta
4159 uses : docker/metadata-action@v5
4260 with :
43- images : |
44- ghcr.io/raphaelmansuy/edgeparse
45- docker.io/raphaelmansuy/edgeparse
61+ images : ${{ steps.image-list.outputs.images }}
4662 tags : |
4763 type=semver,pattern={{version}}
4864 type=semver,pattern={{major}}.{{minor}}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ make publish-all
4545| npm | ` edgeparse-win32-x64-msvc ` | https://www.npmjs.com/package/edgeparse-win32-x64-msvc |
4646| GitHub Releases | CLI binaries (5 archs) | https://github.com/raphaelmansuy/edgeparse/releases |
4747| Homebrew tap | ` raphaelmansuy/edgeparse ` | https://github.com/raphaelmansuy/homebrew-edgeparse |
48- | Docker Hub | ` raphaelmansuy /edgeparse` | https://hub.docker.com/r/raphaelmansuy /edgeparse |
48+ | Docker Hub | ` rmansuy /edgeparse` | https://hub.docker.com/r/rmansuy /edgeparse |
4949| GHCR | ` ghcr.io/raphaelmansuy/edgeparse ` | https://github.com/raphaelmansuy/edgeparse/pkgs/container/edgeparse |
5050
5151### CLI Binary Targets (GitHub Release)
@@ -253,14 +253,14 @@ brew install zig
253253
254254** Required for:** ` release-docker.yml `
255255
256- 1 . Sign in to [ hub.docker.com] ( https://hub.docker.com ) as ` raphaelmansuy ` .
256+ 1 . Sign in to [ hub.docker.com] ( https://hub.docker.com ) as ` rmansuy ` .
2572572 . Create a public repository: ** Repositories → Create Repository** → ` raphaelmansuy/edgeparse ` , Public.
2582583 . Create an Access Token: ** Account Settings → Security → Access Tokens → New Access Token**
259259 - Description: ` edgeparse-github-actions `
260260 - Access: Read & Write
2612614 . Add to GitHub: secret name ` DOCKERHUB_TOKEN ` .
262262
263- The Docker Hub username is hardcoded as ` raphaelmansuy ` in the workflow . GHCR uses ` GITHUB_TOKEN ` automatically.
263+ The Docker Hub username is ` rmansuy ` . GHCR uses ` GITHUB_TOKEN ` automatically.
264264
265265---
266266
You can’t perform that action at this time.
0 commit comments