Skip to content

Commit

Permalink
feat: Update docker push step
Browse files Browse the repository at this point in the history
  • Loading branch information
dinushchathurya committed Jul 10, 2023
1 parent 14466bb commit 7d86f51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:
run: ./gradlew --no-daemon jibDockerBuild
- name: Execute Gradle dockerPush
run: |
echo "${{ secrets.PAT_TOKEN }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} index.docker.io/v1
docker push docker.io/limarktest/${project.name}:${project.version}
echo "${{ secrets.PAT_TOKEN }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
./gradlew --no-daemon dockerPush
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ jib {
image = "gcr.io/distroless/java:11"
}
to {
image = "docker.io/limarktest/${project.name}:${project.version}"
image = "limarktest/${project.name}:${project.version}"
}
}

task dockerPush {
doLast {
exec {
commandLine 'docker', 'push', "docker.io/limarktest/${project.name}:${project.version}"
commandLine 'docker', 'push', "limarktest/${project.name}:${project.version}"
}
}
}

0 comments on commit 7d86f51

Please sign in to comment.