Skip to content

Commit

Permalink
Test image with explicit tag
Browse files Browse the repository at this point in the history
  • Loading branch information
zemanlx committed Apr 3, 2022
1 parent 19c43c6 commit ef6884d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
TEST_TAG: ${{ github.repository }}:test

jobs:
build:
Expand Down Expand Up @@ -67,14 +68,13 @@ jobs:
with:
context: .
load: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ env.TEST_TAG }}

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

0 comments on commit ef6884d

Please sign in to comment.