Skip to content

Commit 0756399

Browse files
authored
Publish up-to-date image for compliance checks (#986)
* Build image when main is pushed * Add tags for latest and previous images
1 parent 6438d75 commit 0756399

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-docker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Build and publish scs-compliance-check Docker image
33
'on':
44
# Allows you to run this workflow manually from the Actions tab
55
workflow_dispatch:
6+
push:
7+
branches:
8+
- main
9+
paths:
10+
- 'Tests/**'
611

712
env:
813
REGISTRY: ghcr.io
@@ -31,6 +36,10 @@ jobs:
3136
uses: docker/metadata-action@v5
3237
with:
3338
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
39+
tags: |
40+
type=raw,value=latest
41+
type=ref,event=branch
42+
type=sha
3443
3544
- name: Build and push Docker image
3645
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)