Skip to content

Commit

Permalink
Merge pull request #18 from nadeeshi/SPRIN-234-Create-Docker-image-an…
Browse files Browse the repository at this point in the history
…d-push-to-ECR

SPRIN-234 - Update main.yml configuration
  • Loading branch information
nadeeshi authored Jul 14, 2024
2 parents df1c791 + eb719df commit ebee91d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,16 @@ jobs:
bump_version_scheme: patch

- name: Build docker
run: ./mvnw --batch-mode package -Dquarkus.container-image.build=true -Drevision=${{ steps.auto-version.outputs.auto-version }}
run: ./mvnw --batch-mode package -Dquarkus.container-image.build=true -Drevision=${{ steps.auto-version.outputs.auto-version }} docker images
env:
QUARKUS_CONTAINER_IMAGE_GROUP: ${{ vars.CONTAINER_IMAGE_GROUP }}
QUARKUS_CONTAINER_IMAGE_REGISTRY: ${{ vars.CONTAINER_IMAGE_REGISTRY }}
QUARKUS_CONTAINER_IMAGE_TAG: ${{ steps.create-release.outputs.version }}
QUARKUS_CONTAINER_IMAGE_ADDITIONAL_TAGS: latest

- name: List Docker images
run: docker images

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
Expand All @@ -64,6 +67,7 @@ jobs:
- name: Release
run: |
echo "Pushing image to ECR..."
docker tag ${{ vars.CONTAINER_IMAGE_REGISTRY }}/${{ vars.CONTAINER_IMAGE_GROUP }}/quarkus-basic:latest ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-east-2.amazonaws.com/nrapp/nr-backend/quarkus-basic:latest
docker push ${{ vars.CONTAINER_IMAGE_REGISTRY }}/${{ vars.CONTAINER_IMAGE_GROUP }}/quarkus-basic --all-tags

0 comments on commit ebee91d

Please sign in to comment.