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
chenpangpang
open-webui
Commits
dbfb6d59
Commit
dbfb6d59
authored
Jun 15, 2024
by
John Karabudak
Browse files
fixed GitHub actions on usernames with uppercase characters
parent
162643a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
2 deletions
+54
-2
.github/workflows/docker-build.yaml
.github/workflows/docker-build.yaml
+54
-2
No files found.
.github/workflows/docker-build.yaml
View file @
dbfb6d59
...
...
@@ -11,8 +11,6 @@ on:
env
:
REGISTRY
:
ghcr.io
IMAGE_NAME
:
${{ github.repository }}
FULL_IMAGE_NAME
:
ghcr.io/${{ github.repository }}
jobs
:
build-main-image
:
...
...
@@ -28,6 +26,15 @@ jobs:
-
linux/arm64
steps
:
# GitHub Packages requires the entire repository name to be in lowercase
# although the repository owner has a lowercase username, this prevents some people from running actions after forking
-
name
:
Set repository and image name to lowercase
run
:
|
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
echo "FULL_IMAGE_NAME=ghcr.io/${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
env
:
IMAGE_NAME_MIXED_CASE
:
'
${{
github.repository
}}'
-
name
:
Prepare
run
:
|
platform=${{ matrix.platform }}
...
...
@@ -116,6 +123,15 @@ jobs:
-
linux/arm64
steps
:
# GitHub Packages requires the entire repository name to be in lowercase
# although the repository owner has a lowercase username, this prevents some people from running actions after forking
-
name
:
Set repository and image name to lowercase
run
:
|
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
echo "FULL_IMAGE_NAME=ghcr.io/${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
env
:
IMAGE_NAME_MIXED_CASE
:
'
${{
github.repository
}}'
-
name
:
Prepare
run
:
|
platform=${{ matrix.platform }}
...
...
@@ -207,6 +223,15 @@ jobs:
-
linux/arm64
steps
:
# GitHub Packages requires the entire repository name to be in lowercase
# although the repository owner has a lowercase username, this prevents some people from running actions after forking
-
name
:
Set repository and image name to lowercase
run
:
|
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
echo "FULL_IMAGE_NAME=ghcr.io/${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
env
:
IMAGE_NAME_MIXED_CASE
:
'
${{
github.repository
}}'
-
name
:
Prepare
run
:
|
platform=${{ matrix.platform }}
...
...
@@ -289,6 +314,15 @@ jobs:
runs-on
:
ubuntu-latest
needs
:
[
build-main-image
]
steps
:
# GitHub Packages requires the entire repository name to be in lowercase
# although the repository owner has a lowercase username, this prevents some people from running actions after forking
-
name
:
Set repository and image name to lowercase
run
:
|
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
echo "FULL_IMAGE_NAME=ghcr.io/${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
env
:
IMAGE_NAME_MIXED_CASE
:
'
${{
github.repository
}}'
-
name
:
Download digests
uses
:
actions/download-artifact@v4
with
:
...
...
@@ -335,6 +369,15 @@ jobs:
runs-on
:
ubuntu-latest
needs
:
[
build-cuda-image
]
steps
:
# GitHub Packages requires the entire repository name to be in lowercase
# although the repository owner has a lowercase username, this prevents some people from running actions after forking
-
name
:
Set repository and image name to lowercase
run
:
|
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
echo "FULL_IMAGE_NAME=ghcr.io/${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
env
:
IMAGE_NAME_MIXED_CASE
:
'
${{
github.repository
}}'
-
name
:
Download digests
uses
:
actions/download-artifact@v4
with
:
...
...
@@ -382,6 +425,15 @@ jobs:
runs-on
:
ubuntu-latest
needs
:
[
build-ollama-image
]
steps
:
# GitHub Packages requires the entire repository name to be in lowercase
# although the repository owner has a lowercase username, this prevents some people from running actions after forking
-
name
:
Set repository and image name to lowercase
run
:
|
echo "IMAGE_NAME=${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
echo "FULL_IMAGE_NAME=ghcr.io/${IMAGE_NAME_MIXED_CASE,,}" >>${GITHUB_ENV}
env
:
IMAGE_NAME_MIXED_CASE
:
'
${{
github.repository
}}'
-
name
:
Download digests
uses
:
actions/download-artifact@v4
with
:
...
...
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