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
9a8a48b8
Commit
9a8a48b8
authored
Mar 20, 2024
by
Jannik Streidl
Browse files
gh build action for the different build args
parent
1f673933
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
10 deletions
+26
-10
.github/workflows/docker-build.yaml
.github/workflows/docker-build.yaml
+26
-10
No files found.
.github/workflows/docker-build.yaml
View file @
9a8a48b8
#
name
:
Create and publish a Docker image
name
:
Create and publish Docker images with specific build args
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on
:
...
...
@@ -23,7 +22,7 @@ jobs:
permissions
:
contents
:
read
packages
:
write
#
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v4
...
...
@@ -41,8 +40,8 @@ jobs:
username
:
${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Extract metadata for Docker images
id
:
meta
-
name
:
Extract metadata for Docker images
(default latest tag)
id
:
meta
-latest
uses
:
docker/metadata-action@v5
with
:
images
:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
...
...
@@ -53,14 +52,31 @@ jobs:
type=sha,prefix=git-
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
flavor
:
|
latest=${{ github.ref == 'refs/heads/main' }}
latest=true
-
name
:
Build and push Docker image (latest)
uses
:
docker/build-push-action@v5
with
:
context
:
.
push
:
true
platforms
:
linux/amd64,linux/arm64
tags
:
${{ steps.meta-latest.outputs.tags }}
labels
:
${{ steps.meta-latest.outputs.labels }}
-
name
:
Build and push Docker image with CUDA
uses
:
docker/build-push-action@v5
with
:
context
:
.
push
:
true
platforms
:
linux/amd64,linux/arm64
tags
:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cuda
build-args
:
USE_CUDA=true
-
name
:
Build and push Docker image
-
name
:
Build and push Docker image
with MPS
uses
:
docker/build-push-action@v5
with
:
context
:
.
push
:
true
platforms
:
linux/amd64,linux/arm64
tags
:
${{
steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
tags
:
${{
env.REGISTRY }}/${{ env.IMAGE_NAME }}:mps
build-args
:
USE_MPS=true
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