Skip to content

Commit 1ff22b9

Browse files
committed
refactor: streamline Docker image build process by removing unnecessary pull and push steps
1 parent be84431 commit 1ff22b9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/workflows/containers-publish.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,14 @@ jobs:
4545
4646
echo "Using: ${DOCKER_REPOSITORY}/*:${DOCKER_TAG}"
4747
48-
- name: "Pull previous Docker container image: backend:latest"
49-
run: docker pull "${DOCKER_REPOSITORY}/backend:latest" || true
50-
5148
- name: "Build Docker container image: backend:latest"
5249
run: |
5350
cd server
5451
docker build \
55-
--cache-from "${DOCKER_REPOSITORY}/backend:latest" \
5652
--file Dockerfile.prod \
57-
--tag "${DOCKER_REPOSITORY}/backend:latest" \
5853
--tag "${DOCKER_REPOSITORY}/backend:${DOCKER_TAG}" \
5954
.
6055
cd ..
6156
62-
- name: Push Docker container image backend:latest
63-
run: docker push "${DOCKER_REPOSITORY}/backend:latest"
64-
6557
- name: Push Docker container image backend:${DOCKER_TAG}
6658
run: docker push "${DOCKER_REPOSITORY}/backend:${DOCKER_TAG}"

0 commit comments

Comments
 (0)