Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WD-264: Use tags & manual approval for production releases #416

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 38 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ executors:
workflows:
commit:
jobs:
- approval:
type: approval
name: approve-deployment
filters:
branches:
ignore:
- production
- main
- /dependabot\/.*/

- silta/drupal-validate:
name: validate
executor: cicd82
Expand All @@ -32,6 +22,16 @@ workflows:
context: analyze
sources: web

# Feature branches approval
- approval:
type: approval
name: approve-feature-deployment
filters:
branches:
only: /^feature\/.*/
tags:
ignore: /.*/

# Build job for feature environments.
# Other jobs defined below extend this job.
- silta/drupal-build: &build
Expand All @@ -44,13 +44,11 @@ workflows:
requires:
- validate
- analyze
- approve-deployment
filters:
branches:
ignore:
- production
- main
- /dependabot\/.*/
only: /^feature\/.*/
tags:
ignore: /.*/

# Deploy job for feature environments.
# Other jobs defined below extend this job.
Expand All @@ -67,12 +65,12 @@ workflows:
context: silta_dev
requires:
- build
- approve-feature-deployment
filters:
branches:
ignore:
- production
- main
- /dependabot\/.*/
only: /^feature\/.*/
tags:
ignore: /.*/

# Build job for main environment.
# Extends the job defined for feature environments.
Expand All @@ -86,6 +84,8 @@ workflows:
branches:
only:
- main
tags:
ignore: /.*/

# Deploy job for main environment.
# Extends the job defined for feature environments.
Expand All @@ -99,6 +99,8 @@ workflows:
branches:
only:
- main
tags:
ignore: /.*/

# Build job for production environment.
# Extends the job defined for feature environments.
Expand All @@ -110,8 +112,20 @@ workflows:
- validate
- analyze
filters:
tags:
only: /^\d+\.\d+\.\d+$/
branches:
ignore: /.*/

# Approval job for production deployment
- approval:
type: approval
name: approve-prod-deployment
filters:
tags:
only: /^\d+\.\d+\.\d+$/
branches:
only: production
ignore: /.*/

# Deploy job for production environment.
# Extends the job defined for feature environments.
Expand All @@ -122,9 +136,12 @@ workflows:
context: silta_finland
requires:
- build-prod
- approve-prod-deployment
filters:
tags:
only: /^\d+\.\d+\.\d+$/
branches:
only: production
ignore: /.*/

# This enables validation on dependabot PRs
# Build job for dependabot environments.
Expand Down