Skip to content

Commit

Permalink
SPRIN-234 - Update main.yml configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeeshi committed Jul 14, 2024
1 parent bacd789 commit eb719df
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 eb719df

Please sign in to comment.