-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TECH-1169 Use generic deployment composite action for staging (#52)
- Loading branch information
1 parent
c11d459
commit 9500cc5
Showing
2 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,27 +20,27 @@ jobs: | |
steps: | ||
- id: setup-build-environment | ||
name: "Setup build environment" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
secrets: ${{ env.secrets }} | ||
- id: format-version | ||
name: "Format version" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
style-as-release: ${{ env.IS_DEFAULT_BRANCH }} | ||
- id: build-and-upload-docker-image | ||
name: "Build and upload Docker Image" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
version: ${{ steps.format-version.outputs.version }} | ||
- id: upload-schema | ||
name: "Upload schema" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
secrets: ${{ env.secrets }} | ||
version: ${{ steps.format-version.outputs.version }} | ||
gistID: "not-used" | ||
- id: upload-build-artifacts | ||
name: "Upload build artifacts" | ||
if: always() | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,30 +20,30 @@ jobs: | |
IS_DEFAULT_BRANCH: ${{ contains('refs/heads/main, refs/heads/master', github.ref) }} | ||
secrets: ${{ toJSON(secrets) }} | ||
outputs: | ||
version: ${{ env.VERSION }} | ||
version: ${{ steps.format-version.outputs.version }} | ||
steps: | ||
- id: setup-build-environment | ||
name: "Setup build environment" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
secrets: ${{ env.secrets }} | ||
- id: format-version | ||
name: "Format version" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
style-as-release: ${{ env.IS_DEFAULT_BRANCH }} | ||
- id: run-tests | ||
name: "Run tests" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
- id: code-analysis | ||
name: "Code analysis" | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
secrets: ${{ env.secrets }} | ||
- id: build-and-upload-docker-image | ||
name: "Build and upload Docker Image" | ||
if: env.IS_DEFAULT_BRANCH == 'true' | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
version: ${{ steps.format-version.outputs.version }} | ||
- name: Update Service Version Badge | ||
|
@@ -59,26 +59,27 @@ jobs: | |
- id: upload-schema | ||
name: "Upload schema" | ||
if: env.IS_DEFAULT_BRANCH == 'true' | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
version: ${{ steps.format-version.outputs.version }} | ||
secrets: ${{ env.secrets }} | ||
gistID: ${{ inputs.gistID }} | ||
- id: upload-pacts | ||
name: "Upload pacts" | ||
if: env.IS_DEFAULT_BRANCH == 'true' | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d | ||
with: | ||
version: ${{ steps.format-version.outputs.version }} | ||
- id: deploy-staging | ||
name: "Deploy staging" | ||
if: env.IS_DEFAULT_BRANCH == 'true' | ||
uses: sympower/sympower-composite-actions/deploy-staging@v2023.10.27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/deploy-to-environment@v2023.10.30.08.44-75ec42d | ||
with: | ||
secrets: ${{ env.secrets }} | ||
version: ${{ steps.format-version.outputs.version }} | ||
default-name: ${{ env.REPOSITORY_NAME }} | ||
deploy-group: staging | ||
- id: upload-build-artifacts | ||
name: "Upload build artifacts" | ||
if: always() | ||
uses: sympower/sympower-composite-actions/[email protected].27.11.11-63adac1 | ||
uses: sympower/sympower-composite-actions/[email protected].30.08.44-75ec42d |