Skip to content

Commit ef6884d

Browse files
committed
Test image with explicit tag
1 parent 19c43c6 commit ef6884d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
REGISTRY: ghcr.io
1919
# github.repository as <account>/<repo>
2020
IMAGE_NAME: ${{ github.repository }}
21+
TEST_TAG: ${{ github.repository }}:test
2122

2223
jobs:
2324
build:
@@ -67,14 +68,13 @@ jobs:
6768
with:
6869
context: .
6970
load: true
70-
tags: ${{ steps.meta.outputs.tags }}
71-
labels: ${{ steps.meta.outputs.labels }}
71+
tags: ${{ env.TEST_TAG }}
7272

7373
# Test Docker image
7474
- name: Run tests of Docker image
7575
id: test-docker-image
7676
run: |
77-
docker run --rm -i -v $PWD:/lint/input:ro ${{ steps.meta.outputs.tags }} --frail .
77+
docker run --rm -i -v $PWD:/lint/input:ro ${{ env.TEST_TAG }} --frail .
7878
7979
# Build and push Docker image with Buildx (don't push on PR)
8080
# https://github.com/docker/build-push-action

0 commit comments

Comments
 (0)