Skip to content

Merge pull request #44 from canonical/IAM-712 #3

Merge pull request #44 from canonical/IAM-712

Merge pull request #44 from canonical/IAM-712 #3

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:
pull_request:
push:
paths:
- "rockcraft.yaml"
- ".github/workflows/**.yaml"
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yaml
publish:
if: github.ref == 'refs/heads/main'
needs: build
uses: ./.github/workflows/publish.yaml
scan:
if: github.ref == 'refs/heads/main'
needs: publish
uses: ./.github/workflows/scan.yaml