Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
Merged
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
6 changes: 6 additions & 0 deletions .github/workflows/ecspresso-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ on:
type: boolean
required: false
default: false
use-partial-taskdefinition:
description: "Use partial task definition (ecspresso)"
required: false
type: boolean
default: true
app:
description: "Application name. Used with monorepo pattern when there are several applications in the repo"
required: false
Expand Down Expand Up @@ -120,6 +125,7 @@ jobs:
qa2: deploy/qa2
enable-migration: ${{ inputs.enable-migration }}
support-rollback: ${{ inputs.support-rollback }}
use-partial-taskdefinition: ${{ inputs.use-partial-taskdefinition }}
secrets:
secret-outputs-passphrase: ${{ secrets.secret-outputs-passphrase }}
github-private-actions-pat: ${{ secrets.github-private-actions-pat }}
22 changes: 17 additions & 5 deletions .github/workflows/ecspresso-hotfix-branch.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: |-
Hotfix branch (Pull request into release/* branches) workflow

Build, test Docker image, deploy it with Spacelift to `hotfix` environment depends of PR labels

### Usage

Create in your repo __`.github/workflows/hotfix-branch.yaml`__

```yaml
name: Hotfix Branch
on:
Expand Down Expand Up @@ -73,6 +73,16 @@ on:
description: "Application name. Used with monorepo pattern when there are several applications in the repo"
required: false
type: string
use-partial-taskdefinition:
description: "Use partial task definition (ecspresso)"
type: boolean
required: false
default: true
deploy-timeout:
description: "Timeout for ecspresso deploy step (e.g., 10m, 30m)"
type: string
required: false
default: 10m
secrets:
secret-outputs-passphrase:
description: "Passphrase to encrypt/decrypt secret outputs with gpg. For more information [read](https://github.com/cloudposse/github-action-secret-outputs)"
Expand Down Expand Up @@ -104,7 +114,7 @@ jobs:

cd:
uses: ./.github/workflows/workflow-cd-preview-ecspresso.yml
needs: [ ci ]
needs: [ci]
if: ${{ always() }}
with:
image: ${{ needs.ci.outputs.image }}
Expand All @@ -119,6 +129,8 @@ jobs:
app: ${{ inputs.app }}
env-label: |
hotfix: deploy
use-partial-taskdefinition: ${{ inputs.use-partial-taskdefinition || '' }}
timeout: ${{ inputs.deploy-timeout }}
secrets:
secret-outputs-passphrase: ${{ secrets.secret-outputs-passphrase }}
github-private-actions-pat: ${{ secrets.github-private-actions-pat }}
6 changes: 6 additions & 0 deletions .github/workflows/ecspresso-main-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ on:
type: boolean
required: false
default: false
use-partial-taskdefinition:
description: "Use partial task definition (ecspresso)"
required: false
type: boolean
default: true
app:
description: "Application name. Used with monorepo pattern when there are several applications in the repo"
required: false
Expand Down Expand Up @@ -94,6 +99,7 @@ jobs:
enable-migration: ${{ inputs.enable-migration }}
support-rollback: ${{ inputs.support-rollback }}
app: ${{ inputs.app }}
use-partial-taskdefinition: ${{ inputs.use-partial-taskdefinition }}
secrets:
secret-outputs-passphrase: "${{ secrets.secret-outputs-passphrase }}"
github-private-actions-pat: "${{ secrets.github-private-actions-pat }}"
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ecspresso-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ on:
type: boolean
required: false
default: false
use-partial-taskdefinition:
description: "Use partial task definition (ecspresso)"
required: false
type: boolean
default: true
app:
description: "Application name. Used with monorepo pattern when there are several applications in the repo"
required: false
Expand Down Expand Up @@ -102,6 +107,7 @@ jobs:
enable-migration: ${{ inputs.enable-migration }}
support-rollback: ${{ inputs.support-rollback }}
app: ${{ inputs.app }}
use-partial-taskdefinition: ${{ inputs.use-partial-taskdefinition }}
secrets:
secret-outputs-passphrase: ${{ secrets.secret-outputs-passphrase }}
github-private-actions-pat: ${{ secrets.github-private-actions-pat }}
Expand All @@ -118,6 +124,7 @@ jobs:
enable-migration: ${{ inputs.enable-migration }}
support-rollback: ${{ inputs.support-rollback }}
app: ${{ inputs.app }}
use-partial-taskdefinition: ${{ inputs.use-partial-taskdefinition }}
secrets:
secret-outputs-passphrase: ${{ secrets.secret-outputs-passphrase }}
github-private-actions-pat: ${{ secrets.github-private-actions-pat }}
1 change: 1 addition & 0 deletions .github/workflows/feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}
ref: ${{ github.event.pull_request.head.ref }}
app: "example-${{ github.event.repository.name }}" # example-app-on-ecs
use-partial-taskdefinition: true

secrets:
github-private-actions-pat: "${{ secrets.PUBLIC_AND_PRIVATE_REPO_ACCESS_TOKEN_REPO }}"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/hotfix-branch.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Hotfix Branch
on:
pull_request:
branches: [ 'release/**' ]
branches: ["release/**"]
types: [opened, synchronize, reopened, closed, labeled, unlabeled]

concurrency:
Expand All @@ -18,6 +18,7 @@ jobs:
labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}
ref: ${{ github.event.pull_request.head.ref }}
app: "example-${{ github.event.repository.name }}"
use-partial-taskdefinition: false
# enable-migration: false # defaults to false
# support-rollback: false # defaults to false
secrets:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/main-branch.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Main Branch
on:
push:
branches: [ main ]
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -14,6 +14,7 @@ jobs:
organization: "${{ github.event.repository.owner.login }}"
repository: "${{ github.event.repository.name }}"
app: "example-${{ github.event.repository.name }}"
use-partial-taskdefinition: false
secrets:
github-private-actions-pat: "${{ secrets.PUBLIC_AND_PRIVATE_REPO_ACCESS_TOKEN_REPO }}"
registry: "${{ secrets.ECR_REGISTRY }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
repository: "${{ github.event.repository.name }}"
version: ${{ github.event.release.tag_name }}
app: "example-${{ github.event.repository.name }}"
use-partial-taskdefinition: false
secrets:
github-private-actions-pat: "${{ secrets.PUBLIC_AND_PRIVATE_REPO_ACCESS_TOKEN_REPO }}"
registry: "${{ secrets.ECR_REGISTRY }}"
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/workflow-cd-ecspresso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ on:
type: boolean
required: false
default: false
use-partial-taskdefinition:
description: "Use partial task definition (ecspresso)"
type: boolean
required: false
default: true
deploy-timeout:
description: "Timeout for ecspresso deploy step (e.g., 10m, 30m)"
type: string
required: false
default: 10m
matrix-step-name:
description: "Matrix step name - matrix output workaround. [Read more](https://github.com/cloudposse/github-action-matrix-outputs-write#introduction)"
required: false
Expand Down Expand Up @@ -144,7 +154,7 @@ jobs:
application: ${{ steps.environment.outputs.name }}
taskdef-path: ${{ inputs.path }}
mirror_to_s3_bucket: ${{ steps.environment.outputs.s3-bucket }}
use_partial_taskdefinition: 'true'
use_partial_taskdefinition: ${{ inputs.use-partial-taskdefinition || '' }}
overrides: |-
{
"containerOverrides":[
Expand Down Expand Up @@ -179,8 +189,8 @@ jobs:
application: ${{ steps.environment.outputs.name }}
taskdef-path: ${{ inputs.path }}
mirror_to_s3_bucket: ${{ steps.environment.outputs.s3-bucket }}
use_partial_taskdefinition: 'true'
timeout: 10m
use_partial_taskdefinition: ${{ inputs.use-partial-taskdefinition || '' }}
timeout: ${{ inputs.deploy-timeout }}
env:
STAGE: ${{ steps.environment.outputs.stage }}
AWS_ACCOUNT_ID: ${{ steps.environment.outputs.account-id }}
Expand Down
Loading