-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REVERT ME: test build workflow with an image worth testing
- Loading branch information
1 parent
882ce82
commit e9f55d4
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,10 @@ on: | |
- development | ||
- staging | ||
- production | ||
buildNewDevImage: | ||
description: "true/false. If deploying to development, set to 'true' to build a new image, otherwise, we'll pull the 'main' image." | ||
required: false | ||
default: "true" | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
@@ -30,11 +34,18 @@ jobs: | |
id: login-ecr | ||
uses: aws-actions/[email protected] | ||
- name: ECR (Dev) - Pull Main Image | ||
if: ${{ github.event.inputs.deployEnvironment == 'development' }} | ||
if: ${{ github.event.inputs.deployEnvironment == 'development' && github.event.inputs.buildNewDevImage == 'false' }} | ||
run: | | ||
ECR_DEV_IMAGE="${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name }}:main" | ||
docker pull $ECR_DEV_IMAGE | ||
echo "ECR_DEV_IMAGE=$ECR_DEV_IMAGE" >> $GITHUB_ENV | ||
- name: ECR (Dev) - Build Image | ||
if: ${{ github.event.inputs.deployEnvironment == 'development' && github.event.inputs.buildNewDevImage == 'true' }} | ||
working-directory: service/application/docker | ||
run: | | ||
./buildEventManagementAgentDocker.sh -t ${{ github.event.inputs.releaseVersion }} | ||
ECR_DEV_IMAGE="solace/${{ github.event.repository.name }}:${{ github.event.inputs.releaseVersion }}" | ||
echo "ECR_DEV_IMAGE=$ECR_DEV_IMAGE" >> $GITHUB_ENV | ||
- name: ECR (Dev) - Pull Prod Ready Image Tag | ||
if: ${{ github.event.inputs.deployEnvironment != 'development' }} | ||
run: | | ||
|