This commit is contained in:
Kostya Struga 2021-12-22 16:18:37 +03:00
parent 4e43f3ed68
commit c733cc642e
2 changed files with 15 additions and 2 deletions

View File

@ -24,4 +24,4 @@ jobs:
uses: ./.github/actions/action-jdk-build uses: ./.github/actions/action-jdk-build
with: with:
github-pat: '${{ secrets.GH_PACKAGES_RO_PAT }}' github-pat: '${{ secrets.GH_PACKAGES_RO_PAT }}'
github-user: 'vulnbe' github-user: 'vulnbe'

View File

@ -29,10 +29,21 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
repository: alfaind/action-deploy-docker repository: alfaind/action-deploy-docker
ref: v1.0.3 ref: v1.0.6
token: '${{ secrets.ACTIONS_FETCH_TOKEN }}' token: '${{ secrets.ACTIONS_FETCH_TOKEN }}'
path: .github/actions/action-deploy-docker path: .github/actions/action-deploy-docker
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@13d241b293754004c80624b5567555c4a39ffbe3
with:
aws-access-key-id: ${{ secrets.ECR_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.ECR_SECRET_KEYS }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@aaf69d68aa3fb14c1d5a6be9ac61fe15b48453a2
- name: Run Build Java - name: Run Build Java
uses: ./.github/actions/action-jdk-build uses: ./.github/actions/action-jdk-build
with: with:
@ -44,3 +55,5 @@ jobs:
with: with:
registry-username: ${{ github.actor }} registry-username: ${{ github.actor }}
registry-access-token: ${{ secrets.GITHUB_TOKEN }} registry-access-token: ${{ secrets.GITHUB_TOKEN }}
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}