diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 912e88d..46ccc04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,4 +24,4 @@ jobs: uses: ./.github/actions/action-jdk-build with: github-pat: '${{ secrets.GH_PACKAGES_RO_PAT }}' - github-user: 'vulnbe' + github-user: 'vulnbe' \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb59350..78caed2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,10 +29,21 @@ jobs: uses: actions/checkout@v2 with: repository: alfaind/action-deploy-docker - ref: v1.0.3 + ref: v1.0.6 token: '${{ secrets.ACTIONS_FETCH_TOKEN }}' 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 uses: ./.github/actions/action-jdk-build with: @@ -44,3 +55,5 @@ jobs: with: registry-username: ${{ github.actor }} registry-access-token: ${{ secrets.GITHUB_TOKEN }} + env: + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} \ No newline at end of file