Skip to content

chore: Rename SD-Core charms by adding -k8s as a suffix #129

chore: Rename SD-Core charms by adding -k8s as a suffix

chore: Rename SD-Core charms by adding -k8s as a suffix #129

Workflow file for this run

name: Main branch CI
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: '40 6 * * 0'
jobs:
check-libraries:
uses: canonical/sdcore-github-workflows/.github/workflows/check-libraries.yaml@main
secrets: inherit
lint-report:
uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@main
static-analysis:
uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@main
unit-tests-with-coverage:
uses: canonical/sdcore-github-workflows/.github/workflows/unit-test.yaml@main
integration-test:
uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@main
with:
charm-file-name: "sdcore-nrf-k8s_ubuntu-22.04-amd64.charm"
publish-charm:
name: Publish Charm
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ github.ref_name == 'main' }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@main
with:
charm-file-name: "sdcore-nrf-k8s_ubuntu-22.04-amd64.charm"
secrets: inherit
lib-needs-publishing:
runs-on: ubuntu-22.04
outputs:
needs-publishing: ${{ steps.changes.outputs.fiveg_nrf_k8s }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
fiveg_nrf_k8s:
- 'lib/charms/sdcore_nrf_k8s/v0/fiveg_nrf_k8s.py'
publish-lib:
name: Publish Lib
needs:
- publish-charm
- lib-needs-publishing
if: ${{ github.ref_name == 'main' }} && ${{ needs.changes.outputs.needs-publishing == 'true' }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-lib.yaml@main
with:
lib-name: "charms.sdcore_nrf_k8s.v0.fiveg_nrf_k8s"
secrets: inherit