Skip to content

Commit

Permalink
REVERT ME: test build workflow with an image worth testing
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRushton committed Jan 25, 2025
1 parent 882ce82 commit e9f55d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy-managed-ema-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit e9f55d4

Please sign in to comment.