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:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/**
|
||||
- build/**
|
||||
- installation/**
|
||||
- tests/**
|
||||
- .dockerignore
|
||||
- docker-bake.hcl
|
||||
- docker-compose.yml
|
||||
- env*
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/**
|
||||
- build/**
|
||||
- installation/**
|
||||
- tests/**
|
||||
- .dockerignore
|
||||
- docker-bake.hcl
|
||||
- docker-compose.yml
|
||||
- env*
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
schedule:
|
||||
# Every day at 01:00 am
|
||||
# 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 * * *
|
||||
|
||||
jobs:
|
||||
|
|
@ -23,13 +43,13 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get latest versions
|
||||
# if: not schedule
|
||||
if: github.event_name != 'schedule'
|
||||
run: ./.github/scripts/get-latest-tags.sh
|
||||
env:
|
||||
VERSION: 13
|
||||
|
||||
- name: Build
|
||||
# if: not schedule
|
||||
if: github.event_name != 'schedule'
|
||||
uses: docker/bake-action@v1.6.0
|
||||
with:
|
||||
files: docker-bake.hcl
|
||||
|
|
|
|||
Loading…
Reference in a new issue