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

fix: test release workflow #466

Merged
merged 3 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
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
33 changes: 23 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# syntax, such as anchors, will be fixed automatically.
version: 2.1
orbs:
shared: getoutreach/shared@dev:2.26.0-rc.1
shared: getoutreach/shared@dev:test_release
queue: eddiewebb/queue@2.2.1

parameters:
Expand Down Expand Up @@ -37,9 +37,7 @@ test: &test
# Branches used for releasing code, pre-release or not
release_branches: &release_branches # Release branch
- release
# Pre-releases branch
- "rc"
# Unstable branch, e.g. HEAD development
# Pre-release and Unstable branch, e.g. HEAD development
- "main"

jobs:
Expand Down Expand Up @@ -86,7 +84,7 @@ workflows:
## <</Stencil::Block>>
### Start jobs inserted by other modules
### End jobs inserted by other modules
- shared/release: &release
- shared/pre-release: &pre-release
dryrun: false
context: *contexts
release_failure_slack_channel: "#dt-notifications"
Expand All @@ -100,15 +98,30 @@ workflows:
- shared/test
filters:
branches:
only: *release_branches

# Dryrun release for PRs.
- shared/release:
<<: *release
only:
- main
# Dryrun for PRs
- shared/pre-release: &pre-release
dryrun: true
context: *contexts
## <<Stencil::Block(circleReleaseExtra)>>

## <</Stencil::Block>>
requires:
## <<Stencil::Block(circleReleaseRequires)>>

## <</Stencil::Block>>
- shared/test
filters:
branches:
ignore: *release_branches
# stable release for release branch
- shared/release:
context: *contexts
dryrun: false
filters:
branches:
only: release
- shared/test:
<<: *test
## <<Stencil::Block(circleSharedTestExtra)>>
Expand Down
4 changes: 2 additions & 2 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
preset: conventionalcommits
branches:
- name: rc
prerelease: "rc"
- name: main
prerelease: rc
- name: release
plugins:
- - "@semantic-release/commit-analyzer"
Expand Down
3 changes: 2 additions & 1 deletion service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ modules:
- name: github.com/getoutreach/stencil-circleci
- name: github.com/getoutreach/stencil-base
- name: github.com/getoutreach/devbase
channel: rc
url: https://github.com/getoutreach/devbase
version: yjyan/change-prerelease
- name: github.com/getoutreach/stencil-golang