Skip to content

Commit 0d7817f

Browse files
committed
build(deps): switch to Docker hardened image (#301)
1 parent 202cbdf commit 0d7817f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@ jobs:
5151
type=ref,event=branch
5252
type=ref,event=pr
5353
type=sha
54-
- name: Test the Docker image
55-
working-directory: ${{ env.IMAGE }}
56-
shell: bash
57-
run: |
58-
set -euo pipefail
59-
IFS=$'\n\t'
60-
docker compose -f docker-compose.test.yml run sut
6154
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
6255
if: github.ref == 'refs/heads/main'
6356
with:
@@ -69,6 +62,13 @@ jobs:
6962
registry: dhi.io
7063
username: ${{ secrets.DOCKERHUB_USERNAME }}
7164
password: ${{ secrets.DOCKERHUB_TOKEN }}
65+
- name: Test the Docker image
66+
working-directory: ${{ env.IMAGE }}
67+
shell: bash
68+
run: |
69+
set -euo pipefail
70+
IFS=$'\n\t'
71+
docker compose -f docker-compose.test.yml run sut
7272
- uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
7373
id: build
7474
with:

0 commit comments

Comments
 (0)