Skip to content

Commit

Permalink
fix: Used image with docker for docker image build with binary
Browse files Browse the repository at this point in the history
  • Loading branch information
devatherock committed May 8, 2022
1 parent 1a5137a commit 559f0fd
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ slack_image: &slack_image
auth:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD

docker_executor_image: &docker_executor_image
docker:
- image: cimg/openjdk:17.0
auth:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD

orbs:
docker: circleci/docker@2.0.3
Expand Down Expand Up @@ -39,13 +46,13 @@ executors:
# To generate swagger UI
JAVA_TOOL_OPTIONS: '-Dmicronaut.openapi.views.spec=swagger-ui.enabled=true,swagger-ui.theme=flattop'
docker-executor:
docker:
- image: cimg/openjdk:17.0
auth:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
<<: *docker_executor_image
<<: *resource_class
<<: *work_directory
native-image-executor:
<<: *docker_executor_image
resource_class: medium
<<: *work_directory

version: 2.1
jobs:
Expand Down Expand Up @@ -152,7 +159,7 @@ workflows:
only: master
- docker/publish:
name: publish
executor: jdk-executor
executor: native-image-executor
context:
- docker-credentials
requires:
Expand Down

0 comments on commit 559f0fd

Please sign in to comment.