Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:
name: Build
if: github.event_name == 'push'
runs-on: ubuntu-26.04
# ghcr.io/fnndsc/cube is FNNDSC's package and this repository is HARBOR-Medical-AI's,
# so the push logs in with the FNNDSC account in GHCR_USERNAME and GHCR_TOKEN, not GITHUB_TOKEN.
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Update __version__.py
Expand Down Expand Up @@ -95,8 +99,8 @@ jobs:
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v7
Expand Down Expand Up @@ -200,6 +204,8 @@ jobs:
needs:
- build
- openapi
permissions:
contents: write # to draft the release
steps:
- id: version
run: echo "version=${GITHUB_REF_NAME:1}" >> "$GITHUB_OUTPUT"
Expand Down
Loading