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