We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc4603 commit 0a09c73Copy full SHA for 0a09c73
.github/workflows/publish-docker-image.yml
@@ -11,6 +11,9 @@ on:
11
tags:
12
- v*
13
14
+ # Run tests for any PRs.
15
+ pull_request:
16
+
17
env:
18
IMAGE_NAME: cspec-alpine
19
@@ -33,10 +36,12 @@ jobs:
33
36
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
34
37
35
38
- name: Log in to registry
39
+ if: github.event_name == 'push'
40
# This is where you will update the PAT to GITHUB_TOKEN
41
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
42
43
- name: Push image
44
45
run: |
46
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
47
0 commit comments