Minor fixes
This commit is contained in:
@@ -59,7 +59,7 @@ jobs:
|
|||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Test application with Gradle
|
- name: Test application with Gradle
|
||||||
if: ${{ inputs.TEST_ENABLED }}
|
if: ${{ inputs.IS_TEST_ENABLED }}
|
||||||
run: ./gradlew test -p ${{ inputs.MODULE_NAME }}
|
run: ./gradlew test -p ${{ inputs.MODULE_NAME }}
|
||||||
env:
|
env:
|
||||||
GITHUB_USERNAME: ${{ secrets.SECRET_GITHUB_USERNAME }}
|
GITHUB_USERNAME: ${{ secrets.SECRET_GITHUB_USERNAME }}
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
working-directory: ${{ inputs.MODULE_NAME }}
|
working-directory: ${{ inputs.MODULE_NAME }}
|
||||||
|
|
||||||
- name: Login to Amazon ECR
|
- name: Login to Amazon ECR
|
||||||
if: ${{ inputs.ECR_PUSH_ENABLED }}
|
if: ${{ inputs.IS_ECR_PUSH_ENABLED }}
|
||||||
id: login-ecr
|
id: login-ecr
|
||||||
uses: aws-actions/amazon-ecr-login@v1
|
uses: aws-actions/amazon-ecr-login@v1
|
||||||
env:
|
env:
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
AWS_REGION: ${{ secrets.SECRET_AWS_REGION }}
|
AWS_REGION: ${{ secrets.SECRET_AWS_REGION }}
|
||||||
|
|
||||||
- name: Build, tag, and push image to Amazon ECR
|
- name: Build, tag, and push image to Amazon ECR
|
||||||
if: ${{ inputs.ECR_PUSH_ENABLED }}
|
if: ${{ inputs.IS_ECR_PUSH_ENABLED }}
|
||||||
env:
|
env:
|
||||||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||||
ECR_REPOSITORY: ${{ inputs.ECR_REPOSITORY }}
|
ECR_REPOSITORY: ${{ inputs.ECR_REPOSITORY }}
|
||||||
@@ -105,5 +105,5 @@ jobs:
|
|||||||
working-directory: ${{ inputs.MODULE_NAME }}
|
working-directory: ${{ inputs.MODULE_NAME }}
|
||||||
|
|
||||||
- name: Logout of Amazon ECR
|
- 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 }}
|
run: docker logout ${{ steps.login-ecr.outputs.registry }}
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
|
|
||||||
- name: Test application with Gradle
|
- name: Test application with Gradle
|
||||||
if: ${{ inputs.TEST_ENABLED }}
|
if: ${{ inputs.IS_TEST_ENABLED }}
|
||||||
run: ./gradlew test
|
run: ./gradlew test
|
||||||
env:
|
env:
|
||||||
GITHUB_USERNAME: ${{ secrets.SECRET_GITHUB_USERNAME }}
|
GITHUB_USERNAME: ${{ secrets.SECRET_GITHUB_USERNAME }}
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
run: cp /docker/api/Dockerfile ./
|
run: cp /docker/api/Dockerfile ./
|
||||||
|
|
||||||
- name: Login to Amazon ECR
|
- name: Login to Amazon ECR
|
||||||
if: ${{ inputs.ECR_PUSH_ENABLED }}
|
if: ${{ inputs.IS_ECR_PUSH_ENABLED }}
|
||||||
id: login-ecr
|
id: login-ecr
|
||||||
uses: aws-actions/amazon-ecr-login@v1
|
uses: aws-actions/amazon-ecr-login@v1
|
||||||
env:
|
env:
|
||||||
@@ -85,7 +85,7 @@ jobs:
|
|||||||
AWS_REGION: ${{ secrets.SECRET_AWS_REGION }}
|
AWS_REGION: ${{ secrets.SECRET_AWS_REGION }}
|
||||||
|
|
||||||
- name: Build, tag, and push image to Amazon ECR
|
- name: Build, tag, and push image to Amazon ECR
|
||||||
if: ${{ inputs.ECR_PUSH_ENABLED }}
|
if: ${{ inputs.IS_ECR_PUSH_ENABLED }}
|
||||||
env:
|
env:
|
||||||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||||
ECR_REPOSITORY: ${{ inputs.ECR_REPOSITORY }}
|
ECR_REPOSITORY: ${{ inputs.ECR_REPOSITORY }}
|
||||||
@@ -98,5 +98,5 @@ jobs:
|
|||||||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
|
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
|
||||||
|
|
||||||
- name: Logout of Amazon ECR
|
- 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 }}
|
run: docker logout ${{ steps.login-ecr.outputs.registry }}
|
||||||
Reference in New Issue
Block a user