Minor fixes

This commit is contained in:
2022-02-04 13:06:59 +03:00
parent c858c90f16
commit 0e574038cb
2 changed files with 8 additions and 8 deletions

View File

@@ -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 }}

View File

@@ -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 }}