Skip to content

Commit 0241e00

Browse files
authored
ci: build and push image on release (#17)
1 parent f183454 commit 0241e00

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,10 @@ jobs:
8585
# uv publish \
8686
# --trusted-publishing always \
8787
# dist/*
88+
89+
docker:
90+
name: Build and Push Docker Image
91+
needs: release
92+
uses: ./.github/workflows/docker.yml
93+
with:
94+
push: true

.github/workflows/docker.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches:
66
- main
77
workflow_call:
8+
inputs:
9+
push:
10+
description: 'Push image to registry'
11+
required: false
12+
type: boolean
13+
default: false
814

915
env:
1016
REGISTRY: docker.io
@@ -49,6 +55,6 @@ jobs:
4955
uv run tutor images build backups
5056
5157
- name: Push Docker image
52-
if: github.event_name == 'workflow_dispatch'
58+
if: inputs.push
5359
run: |
5460
uv run tutor images push backups

0 commit comments

Comments
 (0)