Skip to content

Commit

Permalink
update docker.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Jan 20, 2025
1 parent a65c1e1 commit 7fac5c3
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build docker image
on:
push:
branches:
# - master
- test-ci-cd

env:
Expand Down Expand Up @@ -32,7 +31,7 @@ jobs:
java-version: 21

- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
uses: gradle/gradle-build-action@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@0e613a0980cbf65ed5b322eb7a1e075d28913a83
Expand All @@ -45,23 +44,5 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@62f4f872db3836360b72999f4b87f1ff13310f3a

- name: Clean local Gradle repository
run: make clean

- name: Build docker image
run: make jib

# - name: Docker image
# id: docker-image
# run: |
# echo "image=${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY }}" >> $GITHUB_OUTPUT

# - name: Build and push the image
# uses: docker/build-push-action@v6
# id: docker-build
# with:
# context: .
# push: true
# tags: |
# ${{ steps.docker-image.outputs.image }}:latest
# ${{ steps.docker-image.outputs.image }}:${{ github.sha }}

0 comments on commit 7fac5c3

Please sign in to comment.