Skip to content

Commit

Permalink
chore: Bump rock and upstream version after branching (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmerold authored Dec 5, 2024
1 parent cb1c82a commit b113934
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 33 deletions.
30 changes: 29 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,32 @@ updates:
groups:
npm_dependencies:
patterns:
- "*"
- "*"

- package-ecosystem: "github-actions"
target-branch: v1.0.0
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore: "
groups:
github_actions:
patterns:
- "*"
labels:
- v1.0.0

- package-ecosystem: "npm"
target-branch: v1.0.0
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore: "
groups:
npm_dependencies:
patterns:
- "*"
labels:
- v1.0.0
34 changes: 34 additions & 0 deletions .github/workflows/1_0_0_scheduled_runs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release v1.0.0 scheduled CI

on:
schedule:
- cron: '0 6 * * 0'

jobs:
codeql:
uses: ./.github/workflows/codeql-analysis.yaml
with:
branch-name: "v1.0.0"

nms-lint-report:
uses: ./.github/workflows/nms-lint-report.yaml
with:
branch-name: "v1.0.0"

build-nms:
needs: nms-lint-report
uses: ./.github/workflows/build-nms.yaml
with:
branch-name: "v1.0.0"

build-rock:
needs: build-nms
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
with:
branch-name: "v1.0.0"

scan-rock:
needs: build-rock
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
with:
branch-name: "v1.0.0"
10 changes: 9 additions & 1 deletion .github/workflows/build-nms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: Build check

on:
workflow_call:
inputs:
branch-name:
description: Name of the branch to checkout
required: false
type: string
default: ${{ github.ref }}

jobs:
build-nms:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch-name }}

- name: Install Node
uses: actions/setup-node@v4
Expand Down
33 changes: 10 additions & 23 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: "CodeQL"

on:
push:
schedule:
- cron: "16 20 * * 0"
workflow_call:
inputs:
branch-name:
description: Name of the branch to checkout
required: false
type: string
default: ${{ github.ref }}

jobs:
analyze:
Expand All @@ -21,34 +25,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch-name }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- cron: "0 0 * * 0"

jobs:
codeql:
uses: ./.github/workflows/codeql-analysis.yaml

nms-lint-report:
uses: ./.github/workflows/nms-lint-report.yaml

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/nms-lint-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: Lint report

on:
workflow_call:
inputs:
branch-name:
description: Name of the branch to checkout
required: false
type: string
default: ${{ github.ref }}

jobs:
nms-lint-report:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch-name }}

- name: Install Node
uses: actions/setup-node@v4
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ NMS needs to be configured with the following environment variables:
```console
export WEBUI_ENDPOINT=10.1.182.28:5000

docker pull ghcr.io/canonical/sdcore-nms:0.2.0
docker run -it --env WEBUI_ENDPOINT ghcr.io/canonical/sdcore-nms:0.2.0
docker pull ghcr.io/canonical/sdcore-nms:1.1.0
docker run -it --env WEBUI_ENDPOINT ghcr.io/canonical/sdcore-nms:1.1.0
```
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sdcore-nms",
"version": "0.2.0",
"version": "1.1.0",
"private": true,
"scripts": {
"dev": "next dev -p 3005",
Expand Down
4 changes: 2 additions & 2 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sdcore-nms
base: [email protected]
version: "1.0.0"
version: "1.1.0"
summary: SD-Core NMS
description: |
A Network Management System for managing the SD-Core 5G core network.
Expand Down Expand Up @@ -39,7 +39,7 @@ parts:
plugin: go
source: https://github.com/omec-project/webconsole.git
source-type: git
source-tag: v1.8.0
source-tag: v1.8.1
build-snaps:
- go/1.21/stable
go-buildtags:
Expand Down

0 comments on commit b113934

Please sign in to comment.