mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
ci(Test): Configure trigger paths, don't build on schedule
This commit is contained in:
parent
ab4e6f6fb7
commit
a7a03b1f10
1 changed files with 23 additions and 3 deletions
26
.github/workflows/test.yml
vendored
26
.github/workflows/test.yml
vendored
|
|
@ -1,18 +1,38 @@
|
||||||
name: Test
|
name: Integration Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- .github/**
|
||||||
|
- build/**
|
||||||
|
- installation/**
|
||||||
|
- tests/**
|
||||||
|
- .dockerignore
|
||||||
|
- docker-bake.hcl
|
||||||
|
- docker-compose.yml
|
||||||
|
- env*
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- .github/**
|
||||||
|
- build/**
|
||||||
|
- installation/**
|
||||||
|
- tests/**
|
||||||
|
- .dockerignore
|
||||||
|
- docker-bake.hcl
|
||||||
|
- docker-compose.yml
|
||||||
|
- env*
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
# Every day at 01:00 am
|
# Every day at 01:00 am
|
||||||
# Develop images are built at 12:00 pm, we want to use them
|
# Develop images are built at 12:00 pm, we want to use them
|
||||||
|
# Also, we don't build new images on this event
|
||||||
- cron: 0 1 * * *
|
- cron: 0 1 * * *
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -23,13 +43,13 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Get latest versions
|
- name: Get latest versions
|
||||||
# if: not schedule
|
if: github.event_name != 'schedule'
|
||||||
run: ./.github/scripts/get-latest-tags.sh
|
run: ./.github/scripts/get-latest-tags.sh
|
||||||
env:
|
env:
|
||||||
VERSION: 13
|
VERSION: 13
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
# if: not schedule
|
if: github.event_name != 'schedule'
|
||||||
uses: docker/bake-action@v1.6.0
|
uses: docker/bake-action@v1.6.0
|
||||||
with:
|
with:
|
||||||
files: docker-bake.hcl
|
files: docker-bake.hcl
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue