- Update to version 1723452932.412e7f6:
* add test for missing substitutions * Reject labels that are missing a substitution OBS-URL: https://build.opensuse.org/package/show/devel:microos/container-build-checks?expand=0&rev=11
This commit is contained in:
commit
965201c094
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
SUSE.conf
Normal file
4
SUSE.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[General]
|
||||||
|
Vendor=com.suse
|
||||||
|
Registry=registry.suse.com
|
||||||
|
Registry+=dp.apps.rancher.io
|
13
_service
Normal file
13
_service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<services>
|
||||||
|
<service mode="manual" name="obs_scm">
|
||||||
|
<param name="url">https://github.com/openSUSE/container-build-checks.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service mode="manual" name="set_version" />
|
||||||
|
<service mode="buildtime" name="tar" />
|
||||||
|
<service mode="buildtime" name="recompress">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<servicedata>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/openSUSE/container-build-checks.git</param>
|
||||||
|
<param name="changesrevision">412e7f60c08221a549b0f00dfcc4bee7694193ab</param></service></servicedata>
|
BIN
container-build-checks-1682595397.5ce6d2f.obscpio
(Stored with Git LFS)
Normal file
BIN
container-build-checks-1682595397.5ce6d2f.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
3
container-build-checks-1721653643.19092fe.obscpio
Normal file
3
container-build-checks-1721653643.19092fe.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:92b52584fd859f21a6bb04395a0e290e7e595670505f7c72e6c22f37befc086c
|
||||||
|
size 70667
|
BIN
container-build-checks-1723452932.412e7f6.obscpio
(Stored with Git LFS)
Normal file
BIN
container-build-checks-1723452932.412e7f6.obscpio
(Stored with Git LFS)
Normal file
Binary file not shown.
101
container-build-checks.changes
Normal file
101
container-build-checks.changes
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 12 11:33:57 UTC 2024 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1723452932.412e7f6:
|
||||||
|
* add test for missing substitutions
|
||||||
|
* Reject labels that are missing a substitution
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 13:43:57 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update SUSE.conf: allow dp.rancher.apps.io
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 13:08:23 UTC 2024 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Switch _service to mode="manual"
|
||||||
|
- Update to version 1721653643.19092fe:
|
||||||
|
* Use generic name for the python setup step
|
||||||
|
* Allow specifying more than one registry
|
||||||
|
* Use Pathlib for resolving containerinfo
|
||||||
|
* Switch to test Python 3.11
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 28 09:23:53 UTC 2023 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1682595397.5ce6d2f:
|
||||||
|
* Handle OCI style images as well
|
||||||
|
* Makefile: Add missing dependency of broken-derived on proper-base
|
||||||
|
* GitHub workflow: Update action versions
|
||||||
|
* GitHub workflow: Test python 3.6 and 3.10
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 8 11:37:19 UTC 2022 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Make the URL point to GitHub
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 7 13:42:05 UTC 2022 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- openSUSE.conf: Allow bci/* as prefix
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 20 14:26:26 UTC 2022 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1650464301.a198cf9:
|
||||||
|
* Detect and treat local builds specially
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 7 09:23:46 UTC 2022 - Silvio Moioli <moio@suse.com>
|
||||||
|
|
||||||
|
- Adding Uyuni prefix for https://www.uyuni-project.org/
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 03 07:44:23 UTC 2022 - fvogt@suse.com
|
||||||
|
|
||||||
|
- Update to version 1643874076.3d0e13c:
|
||||||
|
* Avoid crash on local builds
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 14 13:49:12 UTC 2021 - fvogt@suse.com
|
||||||
|
|
||||||
|
- Update to version 1639489705.a4c5a3ab2a75:
|
||||||
|
* Don't error out when the release field is empty
|
||||||
|
* Add simple gitpod configuration
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 1 09:06:12 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Drop obsolete Requires: grep jq
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 28 13:57:34 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1622209785.4616f4f:
|
||||||
|
* README.md: Point badge to new location
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 28 12:47:42 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1622204213.c8ecb9f:
|
||||||
|
* Add options to allow and block specific tags
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 27 15:09:59 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1622127842.b548dd8:
|
||||||
|
* Update README.md
|
||||||
|
* Add README.md
|
||||||
|
* Add broken-derived test
|
||||||
|
* Verify prefix of the image specific label prefix
|
||||||
|
* Add some comments in the Makefile
|
||||||
|
* Always check the tag used in org.opensuse.reference
|
||||||
|
* Add github workflow
|
||||||
|
* Use bash explicitly
|
||||||
|
* Make lint
|
||||||
|
* Less noise in Makefile
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 30 10:04:09 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
- Initial commit
|
4
container-build-checks.obsinfo
Normal file
4
container-build-checks.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: container-build-checks
|
||||||
|
version: 1723452932.412e7f6
|
||||||
|
mtime: 1723452932
|
||||||
|
commit: 412e7f60c08221a549b0f00dfcc4bee7694193ab
|
94
container-build-checks.spec
Normal file
94
container-build-checks.spec
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
#
|
||||||
|
# spec file for package container-build-checks
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: container-build-checks
|
||||||
|
Version: 1723452932.412e7f6
|
||||||
|
Release: 0
|
||||||
|
Summary: Scripts to validate built container images
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
URL: https://github.com/openSUSE/container-build-checks
|
||||||
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
Source1: openSUSE.conf
|
||||||
|
Source2: SUSE.conf
|
||||||
|
Requires: %{name}-vendor
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%package vendor-openSUSE
|
||||||
|
Summary: openSUSE configuration for %{name}
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Provides: %{name}-vendor
|
||||||
|
Conflicts: %{name}-vendor
|
||||||
|
|
||||||
|
%description vendor-openSUSE
|
||||||
|
openSUSE configuration for %{name}
|
||||||
|
|
||||||
|
%package vendor-SUSE
|
||||||
|
Summary: SUSE configuration for %{name}
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Provides: %{name}-vendor
|
||||||
|
Conflicts: %{name}-vendor
|
||||||
|
|
||||||
|
%description vendor-SUSE
|
||||||
|
SUSE configuration for %{name}
|
||||||
|
|
||||||
|
%package strict
|
||||||
|
Summary: Strict configuration for %{name}
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
|
||||||
|
%description strict
|
||||||
|
Strict configuration for %{name}
|
||||||
|
|
||||||
|
%description
|
||||||
|
This tool checks that built container images conform to the openSUSE container
|
||||||
|
image policies (https://en.opensuse.org/Building_derived_containers).
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/container-build-checks/
|
||||||
|
install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/container-build-checks/openSUSE.conf
|
||||||
|
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/container-build-checks/SUSE.conf
|
||||||
|
echo -e "[General]\nFatalWarnings=true" > %{buildroot}%{_datadir}/container-build-checks/strict.conf
|
||||||
|
|
||||||
|
%files
|
||||||
|
#%doc README
|
||||||
|
%license LICENSE
|
||||||
|
%dir %{_datadir}/container-build-checks
|
||||||
|
%dir %{_prefix}/lib/build/
|
||||||
|
%dir %{_prefix}/lib/build/post-build-checks/
|
||||||
|
%{_prefix}/lib/build/post-build-checks/container-build-checks
|
||||||
|
|
||||||
|
%files vendor-openSUSE
|
||||||
|
%{_datadir}/container-build-checks/openSUSE.conf
|
||||||
|
|
||||||
|
%files vendor-SUSE
|
||||||
|
%{_datadir}/container-build-checks/SUSE.conf
|
||||||
|
|
||||||
|
%files strict
|
||||||
|
%{_datadir}/container-build-checks/strict.conf
|
||||||
|
|
||||||
|
%changelog
|
10
openSUSE.conf
Normal file
10
openSUSE.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[General]
|
||||||
|
Vendor=org.opensuse
|
||||||
|
Registry=registry.opensuse.org
|
||||||
|
|
||||||
|
[Tags]
|
||||||
|
# To avoid conflicts with other stuff on the registry and
|
||||||
|
# avoid ambiguities with images on other registries.
|
||||||
|
Allowed+=opensuse/*,kubic/*,kubevirt/*,uyuni/*,bci/*
|
||||||
|
# Those are images, not available as namespaces
|
||||||
|
Blocked+=opensuse/tumbleweed/*,opensuse/leap/*
|
Loading…
x
Reference in New Issue
Block a user