mirror of https://github.com/statping/statping
add environment variables for controlling jobs
parent
d3d1b7cb6a
commit
eab22bec0d
|
@ -7,6 +7,19 @@ on:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
|
|
||||||
|
env:
|
||||||
|
is-stable: |
|
||||||
|
github.event_name == 'push'
|
||||||
|
&& github.ref == 'refs/heads/stable'
|
||||||
|
is-unstable: |
|
||||||
|
github.event_name == 'push'
|
||||||
|
&& github.ref == 'refs/heads/unstable'
|
||||||
|
# this is an alias for is-stable || is-unstable
|
||||||
|
is-release: |
|
||||||
|
github.event_name == 'push'
|
||||||
|
&& (github.ref == 'refs/heads/stable'
|
||||||
|
|| github.ref == 'refs/heads/unstable')
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
frontend:
|
frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -466,7 +479,7 @@ jobs:
|
||||||
|
|
||||||
docker-release:
|
docker-release:
|
||||||
needs: [build, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
|
needs: [build, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
|
||||||
runs-on: [self-hosted, linux, aboutcher-hosted, rocky8]
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Statping Repo
|
- name: Checkout Statping Repo
|
||||||
|
|
Loading…
Reference in New Issue