Skip to content
Open
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
39 changes: 0 additions & 39 deletions .github/workflows/featureDeploy.yml

This file was deleted.

14 changes: 6 additions & 8 deletions .github/workflows/base.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Code change pipeline
run-name: Code change pipeline to ${{ inputs.environment || 'development' }} by @${{ github.actor }}
name: Publish
run-name: Publish - ${{ github.head_ref || github.ref_name }} to ${{ inputs.environment || 'All' }} by @${{ github.actor }} triggered via ${{ github.event_name }}

on:
push:
branches: [main]
workflow_dispatch:
inputs:
environment:
Expand Down Expand Up @@ -32,15 +33,12 @@ jobs:
await github.request(`GET /repos/${process.env.GITHUB_REPOSITORY}/environments`);
return environments.map(e => e.name)

deploy-changes:
publish-image:
needs: [run-tests, detect-environments]
strategy:
matrix:
environment: ['production', 'staging']
if: ${{ github.ref_name == 'main'}}
environment: ${{ fromJSON(needs.detect-environments.outputs.environments) }}
uses: ./.github/workflows/deploy.yml
with:
environment: '${{ matrix.environment }}'
secrets: inherit


secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: security-scan
name: Security Scan

on:
schedule:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Test
run-name: Test run triggered by @${{ github.actor }}
run-name: Test - ${{ github.head_ref || github.ref_name }} by @${{ github.actor }} triggered via ${{ github.event_name }}

on:
workflow_call:
inputs:
environment:
description: What environment should the app be deployed to?
required: true
description: Which environment's containers to use for testing
default: 'development'
type: string
secrets:
Expand All @@ -16,11 +15,13 @@ on:
required: true
DEPLOY_AWS_SECRET_ACCESS_KEY:
required: true
push:
branches-ignore: [main]

jobs:
test:
runs-on: ubuntu-latest
environment: development
environment: ${{ inputs.environment || 'development' }}
env:
DOCKER_REPO: ${{ secrets.DEPLOY_DOCKER_REPOSITORY }}
TESTCONTAINERS_REUSE_ENABLE: true
Expand Down
Loading