diff --git a/.github/workflows/api-multi-module-workflow.yml b/.github/workflows/api-multi-module-workflow.yml index cae998a..1e65709 100644 --- a/.github/workflows/api-multi-module-workflow.yml +++ b/.github/workflows/api-multi-module-workflow.yml @@ -59,7 +59,7 @@ jobs: run: chmod +x gradlew - name: Test application with Gradle - if: ${{ inputs.TEST_ENABLED }} + if: ${{ inputs.IS_TEST_ENABLED }} run: ./gradlew test -p ${{ inputs.MODULE_NAME }} env: GITHUB_USERNAME: ${{ secrets.SECRET_GITHUB_USERNAME }} @@ -82,7 +82,7 @@ jobs: working-directory: ${{ inputs.MODULE_NAME }} - name: Login to Amazon ECR - if: ${{ inputs.ECR_PUSH_ENABLED }} + if: ${{ inputs.IS_ECR_PUSH_ENABLED }} id: login-ecr uses: aws-actions/amazon-ecr-login@v1 env: @@ -91,7 +91,7 @@ jobs: AWS_REGION: ${{ secrets.SECRET_AWS_REGION }} - name: Build, tag, and push image to Amazon ECR - if: ${{ inputs.ECR_PUSH_ENABLED }} + if: ${{ inputs.IS_ECR_PUSH_ENABLED }} env: ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: ${{ inputs.ECR_REPOSITORY }} @@ -105,5 +105,5 @@ jobs: working-directory: ${{ inputs.MODULE_NAME }} - name: Logout of Amazon ECR - if: always() && ${{ inputs.ECR_PUSH_ENABLED }} + if: always() && ${{ inputs.IS_ECR_PUSH_ENABLED }} run: docker logout ${{ steps.login-ecr.outputs.registry }} \ No newline at end of file diff --git a/.github/workflows/api-single-module-workflow.yml b/.github/workflows/api-single-module-workflow.yml index a505796..b89cc4b 100644 --- a/.github/workflows/api-single-module-workflow.yml +++ b/.github/workflows/api-single-module-workflow.yml @@ -55,7 +55,7 @@ jobs: run: chmod +x gradlew - name: Test application with Gradle - if: ${{ inputs.TEST_ENABLED }} + if: ${{ inputs.IS_TEST_ENABLED }} run: ./gradlew test env: GITHUB_USERNAME: ${{ secrets.SECRET_GITHUB_USERNAME }} @@ -76,7 +76,7 @@ jobs: run: cp /docker/api/Dockerfile ./ - name: Login to Amazon ECR - if: ${{ inputs.ECR_PUSH_ENABLED }} + if: ${{ inputs.IS_ECR_PUSH_ENABLED }} id: login-ecr uses: aws-actions/amazon-ecr-login@v1 env: @@ -85,7 +85,7 @@ jobs: AWS_REGION: ${{ secrets.SECRET_AWS_REGION }} - name: Build, tag, and push image to Amazon ECR - if: ${{ inputs.ECR_PUSH_ENABLED }} + if: ${{ inputs.IS_ECR_PUSH_ENABLED }} env: ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} ECR_REPOSITORY: ${{ inputs.ECR_REPOSITORY }} @@ -98,5 +98,5 @@ jobs: docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest - name: Logout of Amazon ECR - if: always() && ${{ inputs.ECR_PUSH_ENABLED }} + if: always() && ${{ inputs.IS_ECR_PUSH_ENABLED }} run: docker logout ${{ steps.login-ecr.outputs.registry }} \ No newline at end of file