Skip to content

Commit 29a667a

Browse files
committed
add Github container repo to docker CI
1 parent 39eec4a commit 29a667a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/dockerhub-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches: [ dev ]
66
workflow_dispatch: null
77

8+
# Add permissions for the built-in GITHUB_TOKEN
9+
permissions:
10+
contents: read
11+
packages: write
12+
813
# Ensures only the latest workflow run for the same branch is active, canceling any in-progress runs.
914
concurrency:
1015
group: ${{ github.workflow }}-${{ github.ref }}
@@ -28,7 +33,7 @@ jobs:
2833
with:
2934
registry: ghcr.io
3035
username: ${{ github.actor }}
31-
password: ${{ secrets.GHCR_TOKEN }}
36+
password: ${{ secrets.GITHUB_TOKEN }} # Changed from GHCR_TOKEN
3237

3338
- name: Get release version
3439
run: echo "COMPAS_VERSION=$(sed -n '/const std::string VERSION_STRING/,/^$/p' ./src/changelog.h | sed 's/.*"\(.*\)"[^"]*$/\1/')" >> $GITHUB_ENV

0 commit comments

Comments
 (0)