Skip to content

Commit

Permalink
feat: add slice to happy deploy stack action
Browse files Browse the repository at this point in the history
  • Loading branch information
aldengolab committed Jan 4, 2024
1 parent 0b740d8 commit 2ab491d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/actions/deploy-happy-stack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ inputs:
github-repo-branch:
description: "Branch of Github repo to deploy"
required: false
slice:
description: "Slice to deploy"
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -92,6 +95,7 @@ runs:
IMAGE_SOURCE_ENV: ${{ inputs.image-source-env }}
IMAGE_SOURCE_STACK: ${{ inputs.image-source-stack }}
IMAGE_SOURCE_ROLE_ARN: ${{ inputs.image-source-role-arn }}
SLICE: ${{ inputs.slice }}
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
Expand Down Expand Up @@ -129,6 +133,10 @@ runs:
if [[ ${IMAGE_SOURCE_ROLE_ARN} != "" ]]; then
HAPPY_DEPLOYMENT_FLAGS="$HAPPY_DEPLOYMENT_FLAGS --image-src-role-arn ${IMAGE_SOURCE_ROLE_ARN}"
fi
if [[ ${SLICE} != "" ]]; then
HAPPY_DEPLOYMENT_FLAGS="$HAPPY_DEPLOYMENT_FLAGS --slice ${SLICE}"
fi
echo "Starting to ${OPERATION} stack ${STACK_NAME} with additional flags: ${HAPPY_DEPLOYMENT_FLAGS}"
echo "Running: '${OPERATION} --aws-profile "" --env=${ENV} ${HAPPY_DEPLOYMENT_FLAGS} ${STACK_NAME}'"
happy ${OPERATION} --aws-profile "" --env=${ENV} ${HAPPY_DEPLOYMENT_FLAGS} ${STACK_NAME}

0 comments on commit 2ab491d

Please sign in to comment.