Skip to content
Snippets Groups Projects
Commit 7f91061b authored by Frederic Danis's avatar Frederic Danis
Browse files

Create sample recipe to build basesdk image


APERTIS-5675

This uses the new Recipe action to merged previous recipes in one.

Signed-off-by: default avatarFrédéric Danis <frederic.danis@collabora.com>
parent 0ca5edd0
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
......@@ -127,6 +127,16 @@ actions:
description: Unpack the devroot ospack
chroot: false
command: tar --extract -C "${ROOTDIR}/opt/devroot" -f devpack.tar.gz
{{ else if eq $devroot "local" }}
- action: run
description: Create the devroot directory
chroot: false
command: mkdir -p "${ROOTDIR}/opt/devroot"
- action: run
description: Unpack the devroot ospack
chroot: false
command: tar --extract -C "${ROOTDIR}/opt/devroot" -f "${ARTIFACTDIR}/{{ $devpack }}.tar.gz"
{{ end }}
- action: run
......
{{- $architecture := "amd64" }}
{{- $type := "basesdk" }}
{{- $mirror := "https://repositories.apertis.org/apertis/" }}
{{- $suite := "18.12" }}
{{- $timestamp := "00000000.0" }}
{{- $image := (printf "apertis-sample-%s-%s-%s_%s" $suite $type $architecture $timestamp) }}
{{ $devroot_arch := "armhf" }}
{{ $devpack := (printf "ospack_%s-%s-%s_%s" $suite $devroot_arch "devroot" $timestamp) }}
architecture: {{ $architecture }}
actions:
- action: recipe
description: Create devroot ospack for {{ $devroot_arch }}
recipe: apertis-ospack-devroot.yaml
variables:
# overide architecture for devroot ospack
architecture: {{ $devroot_arch }}
mirror: {{ $mirror }}
suite: {{ $suite }}
timestamp: {{ $timestamp }}
ospack: {{ $devpack }}
- action: run
description: Reset rootfs
chroot: false
command: find ${ROOTDIR} -maxdepth 1 -mindepth 1 -exec rm -rf {} \;
- action: recipe
description: Create ospack for {{ $suite }} {{ $type }} {{ $architecture }}
recipe: apertis-ospack-{{ $type }}.yaml
variables:
type: {{ $type }}
mirror: {{ $mirror }}
suite: {{ $suite }}
timestamp: {{ $timestamp }}
- action: recipe
description: Create image {{ $image }} for {{ $suite }} {{ $type }} {{ $architecture }}
recipe: apertis-image-sdk.yaml
variables:
type: {{ $type }}
mirror: {{ $mirror }}
suite: {{ $suite }}
timestamp: {{ $timestamp }}
image: {{ $image }}
devroot: local
devroot_arch: {{ $devroot_arch }}
devpack: {{ $devpack }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment