mirror of https://github.com/jumpserver/jumpserver
perf: workflow build base image
parent
8bd86c77f9
commit
3dd828d703
|
@ -4,10 +4,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'pr*'
|
- 'pr*'
|
||||||
paths:
|
|
||||||
- 'poetry.lock'
|
|
||||||
- 'pyproject.toml'
|
|
||||||
- 'Dockerfile-base'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
@ -17,6 +13,15 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check for changes
|
||||||
|
run: |
|
||||||
|
if git diff --name-only HEAD^ dev | grep -E 'poetry.lock|pyproject.toml|Dockerfile-base|package.json|go.mod|yarn.lock|pom.xml|install_deps.sh'; then
|
||||||
|
echo "Changes detected, proceeding with the job."
|
||||||
|
else
|
||||||
|
echo "No relevant changes detected, exiting."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue