Skip to content

Commit bc8aae5

Browse files
committed
New approach with pushing the images in any case and retagging them once the test is complete.
1 parent 5947cb0 commit bc8aae5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build-and-publish.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050

5151
# Login against a Docker registry except on PR
5252
- name: Log into registry ${{ env.REGISTRY }}
53-
if: github.event_name != 'pull_request'
5453
uses: docker/login-action@v3
5554
with:
5655
registry: ${{ env.REGISTRY }}
@@ -69,8 +68,8 @@ jobs:
6968
${{ matrix.postgres_version }}-${{ matrix.major }}
7069
7170
# Build and push Docker image with Buildx, using only the digest
72-
- name: Build and push Docker image
73-
id: build-and-push
71+
- name: Build and push Docker image with digest
72+
id: build-and-push-digest
7473
uses: docker/build-push-action@v5
7574
with:
7675
context: .
@@ -98,8 +97,8 @@ jobs:
9897
docker rm test-db
9998
10099
# Build and push Docker image with Buildx,this time using the final tags
101-
- name: Build and push Docker image
102-
id: build-and-push
100+
- name: Build and push Docker image with final tags (release)
101+
id: build-and-push-release
103102
if: github.event_name != 'pull_request'
104103
uses: docker/build-push-action@v5
105104
with:

0 commit comments

Comments
 (0)