Skip to content

Commit ed51b1a

Browse files
committed
Update publish
1 parent 9bd5cc2 commit ed51b1a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,17 @@ name: Docker
66
# documentation.
77

88
on:
9-
push:
10-
branches: [ "main" ]
11-
# Publish semver tags as releases.
12-
tags: [ 'v*.*.*' ]
13-
pull_request:
14-
branches: [ "main" ]
9+
release:
10+
types: [published]
1511

1612
env:
1713
# Use docker.io for Docker Hub if empty
1814
REGISTRY: ghcr.io
1915
# github.repository as <account>/<repo>
2016
IMAGE_NAME: ${{ github.repository }}
2117

22-
2318
jobs:
2419
build:
25-
2620
runs-on: ubuntu-latest
2721
permissions:
2822
contents: read
@@ -40,7 +34,7 @@ jobs:
4034
- name: Install Cosign
4135
uses: sigstore/cosign-installer@v3.5.0
4236
with:
43-
cosign-release: 'v2.2.4'
37+
cosign-release: "v2.2.4"
4438
- name: Check install!
4539
run: cosign version
4640

0 commit comments

Comments
 (0)