Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit fbee203

Browse files
authored
Update ci-cd.yml
1 parent 6e80a9e commit fbee203

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,21 @@ jobs:
5151
cache-from: type=local,src=/tmp/.buildx-cache
5252
cache-to: type=local,dest=/tmp/.buildx-cache
5353

54-
- name: Build the release Docker image
55-
uses: docker/build-push-action@v4
56-
with:
57-
load: true
58-
file: Dockerfile.multistage
59-
target: build-release-stage
60-
tags: ${{ steps.meta.outputs.tags }}
61-
labels: ${{ steps.meta.outputs.labels }}
62-
cache-from: type=local,src=/tmp/.buildx-cache
63-
cache-to: type=local,dest=/tmp/.buildx-cache
64-
6554
- name: Login to Docker Hub
6655
uses: docker/login-action@v2
6756
if: github.event_name != 'pull_request'
6857
with:
6958
username: ${{ secrets.DOCKER_HUB_USERNAME }}
7059
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
71-
72-
- name: Push Docker image
60+
61+
- name: Push release to Docker Hub
7362
uses: docker/build-push-action@v4
7463
if: github.event_name != 'pull_request'
7564
with:
7665
push: true
66+
file: Dockerfile.multistage
67+
target: build-release-stage
7768
tags: ${{ steps.meta.outputs.tags }}
7869
labels: ${{ steps.meta.outputs.labels }}
70+
cache-from: type=local,src=/tmp/.buildx-cache
71+
cache-to: type=local,dest=/tmp/.buildx-cache

0 commit comments

Comments
 (0)