Skip to content

Commit 2d56963

Browse files
authored
ci: Use buildx for docker builds when changes merged into master (#2703)
* ci: Use buildx for docker builds when changes merged into master Signed-off-by: Achal Shah <[email protected]> * use --load to load the built image into docker Signed-off-by: Achal Shah <[email protected]> * buildx build smh Signed-off-by: Achal Shah <[email protected]>
1 parent 1958df0 commit 2d56963

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/master_only.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
- name: Set up QEMU
1414
uses: docker/setup-qemu-action@v1
1515
- name: Set up Docker Buildx
16-
uses: docker/setup-buildx-action@v1
16+
uses: docker/setup-buildx-action@v2
17+
with:
18+
install: true
1719
- name: Set up AWS SDK
1820
uses: aws-actions/configure-aws-credentials@v1
1921
with:
@@ -50,6 +52,7 @@ jobs:
5052
docker build \
5153
--file sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile \
5254
--tag $ECR_REGISTRY/$ECR_REPOSITORY:${{ steps.image-tag.outputs.DOCKER_IMAGE_TAG }} \
55+
--load \
5356
.
5457
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{ steps.image-tag.outputs.DOCKER_IMAGE_TAG }}
5558
outputs:
@@ -177,7 +180,9 @@ jobs:
177180
- name: Set up QEMU
178181
uses: docker/setup-qemu-action@v1
179182
- name: Set up Docker Buildx
180-
uses: docker/setup-buildx-action@v1
183+
uses: docker/setup-buildx-action@v2
184+
with:
185+
install: true
181186
- name: Login to DockerHub
182187
uses: docker/login-action@v1
183188
with:

.github/workflows/pr_integration_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
docker build \
7070
--file sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile \
7171
--tag $ECR_REGISTRY/$ECR_REPOSITORY:${{ steps.image-tag.outputs.DOCKER_IMAGE_TAG }} \
72+
--load \
7273
.
7374
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${{ steps.image-tag.outputs.DOCKER_IMAGE_TAG }}
7475
outputs:

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,17 @@ push-feature-server-python-aws-docker:
212212
docker push $(REGISTRY)/feature-server-python-aws:$$VERSION
213213

214214
build-feature-server-python-aws-docker:
215-
docker buildx --build-arg VERSION=$$VERSION \
215+
docker buildx build --build-arg VERSION=$$VERSION \
216216
-t $(REGISTRY)/feature-server-python-aws:$$VERSION \
217-
-f sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile .
217+
-f sdk/python/feast/infra/feature_servers/aws_lambda/Dockerfile --load .
218218

219219
push-feature-transformation-server-docker:
220220
docker push $(REGISTRY)/feature-transformation-server:$(VERSION)
221221

222222
build-feature-transformation-server-docker:
223-
docker build --build-arg VERSION=$(VERSION) \
223+
docker buildx build --build-arg VERSION=$(VERSION) \
224224
-t $(REGISTRY)/feature-transformation-server:$(VERSION) \
225-
-f sdk/python/feast/infra/transformation_servers/Dockerfile .
225+
-f sdk/python/feast/infra/transformation_servers/Dockerfile --load .
226226

227227
push-feature-server-java-docker:
228228
docker push $(REGISTRY)/feature-server-java:$(VERSION)

0 commit comments

Comments
 (0)