ci(Test): Configure trigger paths, don't build on schedule

This commit is contained in:
Lev 2021-11-08 20:45:34 +03:00
parent ab4e6f6fb7
commit a7a03b1f10

View file

@ -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