Skip to content

Commit 5da32eb

Browse files
authored
ci: manually build and push docker image (#63)
1 parent c9f5242 commit 5da32eb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,16 @@ jobs:
6565
images: elementsinteractive/lightman-ai
6666

6767
- name: Build and push Docker image
68-
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5.4.0
69-
with:
70-
images: docker.io/elementsinteractive/lightman-ai
71-
context: .
72-
file: ./Dockerfile
73-
push: true
74-
platforms: linux/amd64,linux/arm64
75-
tags: ${{ steps.meta.outputs.tags }}
76-
labels: ${{ steps.meta.outputs.labels }}
77-
cache-from: type=registry,ref=ghcr.io/elementsinteractive/lightman-ai:buildcache
78-
cache-to: type=registry,ref=ghcr.io/elementsinteractive/lightman-ai:buildcache,mode=max
68+
run: |
69+
docker buildx build \
70+
--platform linux/amd64,linux/arm64 \
71+
--push \
72+
--cache-from=type=registry,ref=ghcr.io/elementsinteractive/lightman-ai:buildcache \
73+
--cache-to=type=registry,ref=ghcr.io/elementsinteractive/lightman-ai:buildcache,mode=max \
74+
-t docker.io/elementsinteractive/lightman-ai:latest \
75+
-t docker.io/elementsinteractive/lightman-ai:${{ steps.meta.outputs.version }} \
76+
${{ steps.meta.outputs.labels }}
77+
.
7978
8079
release_notes:
8180
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ readme = "README.md"
2525
lightman-ai = "lightman_ai.cli:entry_point"
2626

2727
[project.optional-dependencies]
28+
2829
test = [
2930
"pytest<9.0.0,>=8.0.0",
3031
"pytest-cov<6.0.0,>=5.0.0",

0 commit comments

Comments
 (0)