diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..83f34e6 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,25 @@ +name: Main + +on: + pull_request: + branches: + - main + push: + branches: + - main + schedule: + - cron: '0 0 * * 0' + +jobs: + + build-rock: + uses: canonical/sdcore-github-workflows/.github/workflows/build-rock.yaml@v0.0.1 + + scan-rock: + needs: build-rock + uses: canonical/sdcore-github-workflows/.github/workflows/scan-rock.yaml@v0.0.1 + + publish-rock: + if: github.ref_name == 'main' + needs: scan-rock + uses: canonical/sdcore-github-workflows/.github/workflows/publish-rock.yaml@v0.0.1