Skip to content

Commit e3982fe

Browse files
authored
build: Setup release build process (#5605)
**Story card:** [sc-15268](https://app.shortcut.com/simpledotorg/story/15268/versioning-adopt-semantic-versioning) ## Because We want to release intentionally, following our versioning discussions. This is part of the work we're undertaking to ensure Simple is a product people can install themselves. Our releases have been bleeding edge for the past seven years thereabouts. With releases, we are able to deliver deterministically to our users. ## This addresses Updating Semaphore instructions on the agreed way we want to deploy releases ## Test instructions n/a
1 parent d65570a commit e3982fe

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.semaphore/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ promotions:
3333
- name: Bangladesh Demo Deployment
3434
pipeline_file: bangladesh_demo_deployment.yml
3535
auto_promote:
36-
when: (branch = 'master' AND result = 'passed') OR (tag =~ '^release-.*' AND result = 'passed')
36+
when: (branch = '^release\/v\d{2}.*' AND result = 'passed')
3737
- name: Ethiopia Demo Deployment
3838
pipeline_file: ethiopia_demo_deployment.yml
3939
auto_promote:
40-
when: (branch = 'master' AND result = 'passed') OR (tag =~ '^release-.*' AND result = 'passed')
40+
when: (branch = '^release\/v\d{2}.*' AND result = 'passed')
4141
- name: Sri Lanka Demo Deployment
4242
pipeline_file: sri_lanka_demo_deployment.yml
4343
auto_promote:
44-
when: (branch = 'master' AND result = 'passed') OR (tag =~ '^release-.*' AND result = 'passed')
44+
when: (branch = '^release\/v\d{2}.*' AND result = 'passed')
4545
- name: India Production Deployment
4646
pipeline_file: india_production_deployment.yml
4747
auto_promote:
48-
when: (branch = 'master' AND result = 'passed') OR (tag =~ '^release-.*' AND result = 'passed')
48+
when: (branch = '^release\/v\d{2}.*' AND result = 'passed')

.semaphore/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ blocks:
1212
- tag_git_sha="$image_name:$SEMAPHORE_GIT_SHA"
1313
- echo $DOCKER_PASSWORD | docker login --username "$DOCKER_USERNAME" --password-stdin
1414
- docker build -t $tag_latest -t $tag_git_sha -f .docker/prod.Dockerfile .
15+
- docker tag $tag_latest "$image_name:${SEMAPHORE_WORKFLOW_ID}"
1516
- docker images
1617
- docker push $tag_latest
1718
- docker push $tag_git_sha

.semaphore/semaphore.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ blocks:
2626
- yarn install
2727
- cache store
2828
- name: Tests
29+
skip:
30+
when: change_in(['/doc', '/swagger', '**/*.md', '/public', '/script'])
2931
task:
3032
env_vars:
3133
- name: RAILS_ENV

0 commit comments

Comments
 (0)