Skip to content

Commit

Permalink
Merge pull request #534 from SUSE/for-deploy-4
Browse files Browse the repository at this point in the history
🤖: Update build recipes for SP4
  • Loading branch information
dirkmueller authored Jul 18, 2023
2 parents 8cc0a95 + 879ee69 commit acdd684
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ staging_build:
source_project: home:defolos:BCI:CR:SLE-15-SP4
source_package: python-3.10-image
target_project: home:defolos:BCI:CR:SLE-15-SP4:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP4
source_package: git-image
target_project: home:defolos:BCI:CR:SLE-15-SP4:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP4
source_package: init-image
Expand All @@ -29,6 +33,9 @@ refresh_devel_BCI:
- trigger_services:
project: devel:BCI:SLE-15-SP4
package: python-3.10-image
- trigger_services:
project: devel:BCI:SLE-15-SP4
package: git-image
- trigger_services:
project: devel:BCI:SLE-15-SP4
package: init-image
Expand Down
10 changes: 10 additions & 0 deletions git-image/_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<services>
<service mode="buildtime" name="kiwi_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">git-image.kiwi</param>
<param name="regex">%%git_version%%</param>
<param name="package">git-core</param>
<param name="parse-version">minor</param>
</service>
</services>
31 changes: 31 additions & 0 deletions git-image/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: (c) 2022-2023 SUSE LLC

set -euo pipefail

test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

echo "Configure image: [$kiwi_iname]..."

#============================================
# Import repositories' keys if rpm is present
#--------------------------------------------
if command -v rpm > /dev/null; then
suseImportBuildKey
fi




#=======================================
# Clean up after zypper if it is present
#---------------------------------------
if command -v zypper > /dev/null; then
zypper -n clean
fi

rm -rf /var/log/zypp

exit 0
4 changes: 4 additions & 0 deletions git-image/git-image.changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Jul 17 15:11:53 UTC 2023 - SUSE Update Bot <[email protected]>

- First version of the 15 SP4 with Git BCI
53 changes: 53 additions & 0 deletions git-image/git-image.kiwi
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: GPL-2.0-only -->

<!-- OBS-AddTag: suse/git:%%git_version%% suse/git:%%git_version%%-%RELEASE% -->
<!-- OBS-Imagerepo: obsrepositories:/ -->

<image schemaversion="6.5" name="git-image" xmlns:suse_label_helper="com.suse.label_helper">
<description type="system">
<author>SUSE LLC</author>
<contact>https://www.suse.com/</contact>
<specification>SLE 15 SP4 with Git Container Image</specification>
</description>
<preferences>
<type image="docker" derived_from="obsrepositories:/bci/bci-micro#15.4">
<containerconfig
name="suse/git"
tag="%%git_version%%"
maintainer="SUSE LLC (https://www.suse.com/)"
additionaltags="%%git_version%%-%RELEASE%">
<labels>
<suse_label_helper:add_prefix prefix="com.suse.application.git">
<label name="org.opencontainers.image.title" value="SLE 15 SP4 with Git"/>
<label name="org.opencontainers.image.description" value="A micro environment with Git for containers based on the SLE Base Container Image."/>
<label name="org.opencontainers.image.version" value="%%git_version%%"/>
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
<label name="org.opencontainers.image.vendor" value="SUSE LLC"/>
<label name="org.opencontainers.image.source" value="%SOURCEURL%"/>
<label name="org.opencontainers.image.url" value="https://www.suse.com/products/server/"/>
<label name="org.opensuse.reference" value="registry.suse.com/suse/git:%%git_version%%-%RELEASE%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="com.suse.supportlevel" value="l3"/>
<label name="com.suse.image-type" value="application"/>
<label name="com.suse.eula" value="sle-bci"/>
<label name="com.suse.release-stage" value="released"/>
<label name="com.suse.lifecycle-url" value="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"/>
</suse_label_helper:add_prefix>
</labels>
</containerconfig>
</type>
<version>15.4.0</version>
<packagemanager>zypper</packagemanager>
<rpm-check-signatures>false</rpm-check-signatures>
<rpm-excludedocs>true</rpm-excludedocs>
</preferences>
<repository type="rpm-md">
<source path="obsrepositories:/"/>
</repository>
<packages type="bootstrap">
<package name="git-core"/>
<package name="skelcd-EULA-bci"/>
</packages>

</image>

0 comments on commit acdd684

Please sign in to comment.