Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
12d8ad0d
Unverified
Commit
12d8ad0d
authored
Jul 07, 2025
by
Daniel Hiltgen
Committed by
GitHub
Jul 07, 2025
Browse files
ci: modularization (#11324)
switch a few constants to variables
parent
592d21e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
.github/workflows/release.yaml
.github/workflows/release.yaml
+7
-7
No files found.
.github/workflows/release.yaml
View file @
12d8ad0d
...
@@ -225,7 +225,7 @@ jobs:
...
@@ -225,7 +225,7 @@ jobs:
CGO_CFLAGS=${{ env.CGO_CFLAGS }}
CGO_CFLAGS=${{ env.CGO_CFLAGS }}
CGO_CXXFLAGS=${{ env.CGO_CXXFLAGS }}
CGO_CXXFLAGS=${{ env.CGO_CXXFLAGS }}
outputs
:
type=local,dest=dist/${{ matrix.os }}-${{ matrix.arch }}
outputs
:
type=local,dest=dist/${{ matrix.os }}-${{ matrix.arch }}
cache-from
:
type=registry,ref=
ollama/ollama
:latest
cache-from
:
type=registry,ref=
${{ vars.DOCKER_REPO }}
:latest
cache-to
:
type=inline
cache-to
:
type=inline
-
run
:
|
-
run
:
|
for COMPONENT in bin/* lib/ollama/*; do
for COMPONENT in bin/* lib/ollama/*; do
...
@@ -298,8 +298,8 @@ jobs:
...
@@ -298,8 +298,8 @@ jobs:
context
:
.
context
:
.
platforms
:
${{ matrix.os }}/${{ matrix.arch }}
platforms
:
${{ matrix.os }}/${{ matrix.arch }}
build-args
:
${{ matrix.build-args }}
build-args
:
${{ matrix.build-args }}
outputs
:
type=image,name=
ollama/ollama
,push-by-digest=true,name-canonical=true,push=true
outputs
:
type=image,name=
${{ vars.DOCKER_REPO }}
,push-by-digest=true,name-canonical=true,push=true
cache-from
:
type=registry,ref=
ollama/ollama
:latest
cache-from
:
type=registry,ref=
${{ vars.DOCKER_REPO }}
:latest
cache-to
:
type=inline
cache-to
:
type=inline
-
run
:
|
-
run
:
|
mkdir -p ${{ matrix.os }}-${{ matrix.arch }}
mkdir -p ${{ matrix.os }}-${{ matrix.arch }}
...
@@ -331,7 +331,7 @@ jobs:
...
@@ -331,7 +331,7 @@ jobs:
latest=false
latest=false
suffix=${{ matrix.suffix }}
suffix=${{ matrix.suffix }}
images
:
|
images
:
|
ollama/ollama
${{ vars.DOCKER_REPO }}
tags
:
|
tags
:
|
type=ref,enable=true,priority=600,prefix=pr-,event=pr
type=ref,enable=true,priority=600,prefix=pr-,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{version}}
...
@@ -341,8 +341,8 @@ jobs:
...
@@ -341,8 +341,8 @@ jobs:
path
:
${{ runner.temp }}
path
:
${{ runner.temp }}
merge-multiple
:
true
merge-multiple
:
true
-
run
:
|
-
run
:
|
docker buildx imagetools create $(echo '${{ steps.metadata.outputs.json }}' | jq -cr '.tags | map("-t", .) | join(" ")') $(cat *-${{ matrix.suffix }}.txt | xargs printf '
ollama/ollama
@%s ')
docker buildx imagetools create $(echo '${{ steps.metadata.outputs.json }}' | jq -cr '.tags | map("-t", .) | join(" ")') $(cat *-${{ matrix.suffix }}.txt | xargs printf '
${{ vars.DOCKER_REPO }}
@%s ')
docker buildx imagetools inspect
ollama/ollama
:${{ steps.metadata.outputs.version }}
docker buildx imagetools inspect
${{ vars.DOCKER_REPO }}
:${{ steps.metadata.outputs.version }}
working-directory
:
${{ runner.temp }}
working-directory
:
${{ runner.temp }}
# Trigger downstream release process
# Trigger downstream release process
...
@@ -380,4 +380,4 @@ jobs:
...
@@ -380,4 +380,4 @@ jobs:
-H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.RELEASE_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ollama/${{ vars.RELEASE_REPO }}/dispatches \
https://api.github.com/repos/ollama/${{ vars.RELEASE_REPO }}/dispatches \
-d "{\"event_type\": \"trigger-workflow\", \"client_payload\": {\"run_id\": \"${GITHUB_RUN_ID}\", \"version\": \"${GITHUB_REF_NAME#v}\", \"publish\": \"1\"}}"
-d "{\"event_type\": \"trigger-workflow\", \"client_payload\": {\"run_id\": \"${GITHUB_RUN_ID}\", \"version\": \"${GITHUB_REF_NAME#v}\",
\"origin\": \"${GITHUB_REPOSITORY}\",
\"publish\": \"1\"}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment