Skip to content

Commit

Permalink
TECH-1169 Use generic deployment composite action for staging (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisojandu-sympower authored Oct 30, 2023
1 parent c11d459 commit 9500cc5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-for-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 11 additions & 10 deletions .github/workflows/release-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 9500cc5

Please sign in to comment.