diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b99983..f623b87 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,8 @@ ## Build and deploy ```bash +sudo snap install rockcraft --classic --edge rockcraft pack -v -sudo skopeo --insecure-policy copy oci-archive:sdcore-gnbsim_1.4.0_amd64.rock docker-daemon:sdcore-gnbsim:1.4.0 -docker run sdcore-gnbsim:1.4.0 +sudo rockcraft.skopeo --insecure-policy copy oci-archive:sdcore-gnbsim_1.4.3_amd64.rock docker-daemon:sdcore-gnbsim:1.4.3 +docker run sdcore-gnbsim:1.4.3 ``` diff --git a/rockcraft.yaml b/rockcraft.yaml index 50740e7..752622b 100644 --- a/rockcraft.yaml +++ b/rockcraft.yaml @@ -14,7 +14,7 @@ parts: plugin: go source: https://github.com/omec-project/gnbsim.git source-type: git - source-tag: v1.4.3 + source-tag: v${CRAFT_PROJECT_VERSION} build-snaps: - go/1.22/stable organize: @@ -23,3 +23,12 @@ parts: - iproute2 - libc6 - base-files + version: + plugin: nil + override-build: | + mkdir -p ${CRAFT_PART_INSTALL}/etc/ + echo ${CRAFT_PROJECT_VERSION} > ${CRAFT_PART_INSTALL}/etc/workload-version + organize: + "*": etc/ + stage: + - etc/