Skip to content

Merge pull request #124 from canonical/renovate/auto-github-actions #139

Merge pull request #124 from canonical/renovate/auto-github-actions

Merge pull request #124 from canonical/renovate/auto-github-actions #139

Workflow file for this run

name: CI
# When pushing to the "main" branch, we:
# * build the rock image
# * publish the image
# * scan the image and upload the artifacts to the repository
on:
push:
branches:
- "main"
- "release-**"
tags:
- "v**"
paths:
- "rockcraft.yaml"
- ".github/workflows/**.yaml"
pull_request:
branches:
- "*"
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yaml
publish:
if: ${{ (github.ref == 'refs/heads/main') || (github.ref_type == 'tag') }}
needs: build
uses: ./.github/workflows/publish.yaml
scan:
if: ${{ (github.ref == 'refs/heads/main') || (github.ref_type == 'tag') }}
needs: publish
uses: ./.github/workflows/scan.yaml