Skip to content

Commit 7139d1d

Browse files
committed
Create Docker context before using buildx builder
1 parent 719a82d commit 7139d1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ commands:
117117
- run:
118118
name: Install Docker buildx
119119
command: |
120-
docker build --platform=local -o ~ git://github.com/docker/buildx
120+
docker build --platform=local --quiet -o ~ git://github.com/docker/buildx
121121
mkdir -p ~/.docker/cli-plugins
122122
mv ~/buildx ~/.docker/cli-plugins/docker-buildx
123123
environment:
@@ -127,6 +127,7 @@ commands:
127127
name: Build Docker image and push to Docker Hub
128128
command: |
129129
docker login -u ${<< parameters.user >>} -p ${<< parameters.pass >>}
130+
docker context create builder
130131
docker buildx create --use
131132
docker buildx build --no-cache --platform linux/amd64,linux/arm64 --push -t marpteam/marp-cli:<< parameters.tag >> .
132133
environment:

0 commit comments

Comments
 (0)