Skip to content

Commit 5758018

Browse files
committed
Update release workflow: adjust push condition for pull requests and add branch support for dev
1 parent c98be2a commit 5758018

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
push:
55
branches:
66
- main
7-
- dev*
7+
pull_request:
8+
branches:
9+
- main
810
env:
911
REGISTRY: ghcr.io
1012
IMAGE_NAME: ${{ github.repository }}
@@ -34,6 +36,6 @@ jobs:
3436
uses: docker/build-push-action@v6
3537
with:
3638
context: .
37-
push: true
39+
push: ${{ github.event_name != 'pull_request' }}
3840
tags: ${{ steps.meta.outputs.tags }}
3941
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
22

3+
ENV UV_LINK_MODE copy
4+
35
RUN apt-get update && \
46
apt-get install -y --no-install-recommends \
57
build-essential \

0 commit comments

Comments
 (0)