Skip to content

Commit

Permalink
Change workflow triggers
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
  • Loading branch information
nicolasbock committed Sep 11, 2024
1 parent 0e65b8c commit e4b8217
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
workflows: [Test and Build]
types:
- completed
release:
types:
- published

env:
REGISTRY: docker.io
Expand All @@ -27,12 +30,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3
with:
cosign-release: 'v2.1.1'

- name: Get packages
uses: actions/download-artifact@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ghcr-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
workflows: [Test and Build]
types:
- completed
release:
types:
- published

env:
REGISTRY: ghcr.io
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/test-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
push:
branches:
- main
tags:
- 'v*.*.*' # v0.1.2
- 'v20*' # v20240613[-1]
pull_request:
branches:
- main
Expand Down

0 comments on commit e4b8217

Please sign in to comment.