Skip to content

Commit c745eb9

Browse files
committed
fix cd pipeline
1 parent 928bbce commit c745eb9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
with:
2424
driver: docker-container
2525
buildkitd-flags: --debug
26-
use: true
26+
27+
- name: Create and use a named Buildx builder
28+
run: |
29+
docker buildx create --use --name mybuilder || docker buildx use mybuilder
30+
docker buildx inspect --bootstrap
2731
2832
- name: Cache Docker layers
2933
uses: actions/cache@v3
@@ -36,6 +40,7 @@ jobs:
3640
- name: Build API Docker image
3741
run: |
3842
docker buildx build \
43+
--builder mybuilder \
3944
--file api/Dockerfile \
4045
--tag your-org/tinyurl-api:main \
4146
--cache-from=type=local,src=/tmp/.buildx-cache \
@@ -46,9 +51,10 @@ jobs:
4651
- name: Build Webapp Docker image
4752
run: |
4853
docker buildx build \
54+
--builder mybuilder \
4955
--file webapp/Dockerfile \
5056
--tag your-org/tinyurl-webapp:main \
5157
--cache-from=type=local,src=/tmp/.buildx-cache \
5258
--cache-to=type=local,dest=/tmp/.buildx-cache \
5359
--load \
54-
./webapp
60+
./webapp

0 commit comments

Comments
 (0)