Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add slice to happy deploy stack action #236

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Changes from 1 commit
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
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:
aldengolab marked this conversation as resolved.
Show resolved Hide resolved
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}
Loading