Skip to content

Commit 39a0757

Browse files
committed
fix(workflows): simplify GHCR login credentials handling and ensure proper repository reference in release upload
1 parent 710c7ca commit 39a0757

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/publish-ghcr-ai.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
uses: docker/login-action@v3
2727
with:
2828
registry: ghcr.io
29-
username: ${{ secrets.GHCR_USERNAME || github.actor }}
30-
password: ${{ secrets.GHCR_TOKEN || github.token }}
29+
username: ${{ github.actor }}
30+
password: ${{ github.token }}
3131

3232
- name: Resolve image tags
3333
id: meta
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Set package visibility to public
7575
env:
76-
GH_TOKEN: ${{ secrets.GHCR_TOKEN || github.token }}
76+
GH_TOKEN: ${{ github.token }}
7777
OWNER: ${{ github.repository_owner }}
7878
PACKAGE: secrux-ai
7979
run: |

.github/workflows/publish-ghcr-engine.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
uses: docker/login-action@v3
3939
with:
4040
registry: ghcr.io
41-
username: ${{ secrets.GHCR_USERNAME || github.actor }}
42-
password: ${{ secrets.GHCR_TOKEN || github.token }}
41+
username: ${{ github.actor }}
42+
password: ${{ github.token }}
4343

4444
- name: Resolve image tags
4545
id: meta
@@ -91,7 +91,7 @@ jobs:
9191

9292
- name: Set package visibility to public
9393
env:
94-
GH_TOKEN: ${{ secrets.GHCR_TOKEN || github.token }}
94+
GH_TOKEN: ${{ github.token }}
9595
OWNER: ${{ github.repository_owner }}
9696
PACKAGE: ${{ matrix.image }}
9797
run: |

.github/workflows/publish-ghcr-server.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
uses: docker/login-action@v3
2727
with:
2828
registry: ghcr.io
29-
username: ${{ secrets.GHCR_USERNAME || github.actor }}
30-
password: ${{ secrets.GHCR_TOKEN || github.token }}
29+
username: ${{ github.actor }}
30+
password: ${{ github.token }}
3131

3232
- name: Resolve image tags
3333
id: meta
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Set package visibility to public
7575
env:
76-
GH_TOKEN: ${{ secrets.GHCR_TOKEN || github.token }}
76+
GH_TOKEN: ${{ github.token }}
7777
OWNER: ${{ github.repository_owner }}
7878
PACKAGE: secrux-server
7979
run: |

.github/workflows/publish-ghcr-web.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
uses: docker/login-action@v3
2727
with:
2828
registry: ghcr.io
29-
username: ${{ secrets.GHCR_USERNAME || github.actor }}
30-
password: ${{ secrets.GHCR_TOKEN || github.token }}
29+
username: ${{ github.actor }}
30+
password: ${{ github.token }}
3131

3232
- name: Resolve image tags
3333
id: meta
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Set package visibility to public
7575
env:
76-
GH_TOKEN: ${{ secrets.GHCR_TOKEN || github.token }}
76+
GH_TOKEN: ${{ github.token }}
7777
OWNER: ${{ github.repository_owner }}
7878
PACKAGE: secrux-web
7979
run: |

.github/workflows/release-assets-executor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ jobs:
144144
shell: bash
145145
run: |
146146
set -euo pipefail
147-
gh release upload "${TAG}" dist/* --clobber
147+
gh release upload "${TAG}" dist/* --clobber --repo "${GITHUB_REPOSITORY}"

0 commit comments

Comments
 (0)