Skip to content

Commit 06f7f6d

Browse files
committed
Modify settings for prod release.
1 parent 451fb3f commit 06f7f6d

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Build And Test CWMS Data API
33
on:
44
push:
55
branches:
6-
- test
6+
- prod
77
pull_request:
88
branches:
9-
- test
9+
- prod
1010

1111
jobs:
1212
build:

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232
required: true
3333
description: Which Branch to make the build from
3434
options:
35-
- test
35+
- prod
3636
nightly:
3737
type: boolean
3838
required: true
@@ -76,7 +76,7 @@ jobs:
7676
- name: Create GitHub Release
7777
id: create_release
7878
# Allow testing without creating a release
79-
if: github.event_name != 'pull_request' && (github.event.ref == 'refs/heads/test' || startsWith(github.event.ref, 'refs/tags'))
79+
if: github.event_name != 'pull_request' && (github.event.ref == 'refs/heads/prod' || startsWith(github.event.ref, 'refs/tags'))
8080
uses: softprops/action-gh-release@v2.3.2
8181
with:
8282
files: cwms-data-api/build/libs/cwms-data-api-${{env.VERSION}}.war
@@ -133,7 +133,7 @@ jobs:
133133
uses: ./.github/actions/database-migration-image
134134
with:
135135
base-image: ghcr.io/hydrologicengineeringcenter/cwms-database/cwms/schema_installer
136-
tag: latest-dev
136+
tag: latest
137137
- name: Publish migration container
138138
id: migration-publish
139139
run: |

.github/workflows/tagged-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ name: Tagged Release
33
on:
44
push:
55
tags:
6+
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]'
67
# mark as test allow additional releases within a day with
78
# a marker after test.
8-
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]-test[a-z]*'
9+
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]-[a-z]*'
910
jobs:
1011
release:
1112
uses: ./.github/workflows/release.yml

0 commit comments

Comments
 (0)