Skip to content

Commit

Permalink
feat: adding craft version as a file (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
markbeierl authored Jun 14, 2024
1 parent a4ec164 commit c6d193a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-ausf_1.4.0_amd64.rock docker-daemon:sdcore-ausf:1.4.0
docker run sdcore-ausf:1.4.0
```
sudo rockcraft.skopeo --insecure-policy copy oci-archive:sdcore-ausf_1.4.1_amd64.rock docker-daemon:sdcore-ausf:1.4.1
docker run sdcore-ausf:1.4.1
```
11 changes: 10 additions & 1 deletion rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ parts:
plugin: go
source: https://github.com/omec-project/ausf.git
source-type: git
source-tag: v1.4.1
source-tag: v${CRAFT_PROJECT_VERSION}
build-snaps:
- go/1.21/stable
stage-packages:
- libc6_libs
- base-files_lib
organize:
bin/cmd: bin/ausf
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/

0 comments on commit c6d193a

Please sign in to comment.