Merge pull request #940 from thecodingmachine/restrictCD
FIX: the deploy action now only start when the label 'deploy' is applied to the PR
This commit is contained in:
commit
998e051a45
14
.github/workflows/build-and-deploy.yml
vendored
14
.github/workflows/build-and-deploy.yml
vendored
@ -1,7 +1,9 @@
|
||||
name: Build, push and deploy Docker image
|
||||
|
||||
on:
|
||||
- push
|
||||
pull_request:
|
||||
types: [ labeled, synchronize ]
|
||||
|
||||
|
||||
# Enables BuildKit
|
||||
env:
|
||||
@ -10,7 +12,7 @@ env:
|
||||
jobs:
|
||||
|
||||
build-front:
|
||||
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -34,7 +36,7 @@ jobs:
|
||||
add_git_labels: true
|
||||
|
||||
build-back:
|
||||
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -57,7 +59,7 @@ jobs:
|
||||
add_git_labels: true
|
||||
|
||||
build-pusher:
|
||||
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -80,7 +82,7 @@ jobs:
|
||||
add_git_labels: true
|
||||
|
||||
build-uploader:
|
||||
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -103,7 +105,7 @@ jobs:
|
||||
add_git_labels: true
|
||||
|
||||
build-maps:
|
||||
|
||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
3
.github/workflows/cleanup.yml
vendored
3
.github/workflows/cleanup.yml
vendored
@ -1,7 +1,8 @@
|
||||
name: Cleanup images and environments
|
||||
|
||||
on:
|
||||
- delete
|
||||
pull_request:
|
||||
types: [ closed ]
|
||||
|
||||
# Enables BuildKit
|
||||
env:
|
||||
|
7
.github/workflows/continuous_integration.yml
vendored
7
.github/workflows/continuous_integration.yml
vendored
@ -3,8 +3,11 @@
|
||||
name: "Continuous Integration"
|
||||
|
||||
on:
|
||||
- "pull_request"
|
||||
- "push"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user