Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test single arch #8921

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions make/tool.mk
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ $(ALL_TOOLS_RAW):%: \
--platform $${ARCHS} \
--cache-from $(REGISTRY)/$(REPOSITORY_PREFIX)$*:latest \
--tag $(REGISTRY)/$(REPOSITORY_PREFIX)$*:$${VERSION_TAG} \
--provenance=false \
--sbom=false \
--attest=type=provenance,mode=max \
--metadata-file $(TOOLS_DIR)/$@/build-metadata.json \
--output type=registry,oci-mediatypes=true,push=$${PUSH} \
--output type=registry,oci-mediatypes=true,rewrite-timestamp=true,push=$${PUSH} \
--progress plain \
>$(TOOLS_DIR)/$@/build.log 2>&1; then \
cat $(TOOLS_DIR)/$@/build.log; \
Expand Down
12 changes: 12 additions & 0 deletions tools/dummy-amd64-only/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#syntax=docker/dockerfile:1.12.0@sha256:db1ff77fb637a5955317c7a3a62540196396d565f3dd5742e76dddbb6d75c4c5

FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
RUN <<EOF
touch "${prefix}/dummy-amd64-only"
EOF
14 changes: 14 additions & 0 deletions tools/dummy-amd64-only/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: dummy-amd64-only
version: "0.1.0"
binary: "false"
check: "" # No binary
platforms:
- linux/amd64
tags:
- org/uniget
- category/development
homepage: https://github.com/uniget-org/tools
repository: https://github.com/uniget-org/tools
description: Testing of uniget-org/tools
12 changes: 12 additions & 0 deletions tools/dummy-arm64-only/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#syntax=docker/dockerfile:1.12.0@sha256:db1ff77fb637a5955317c7a3a62540196396d565f3dd5742e76dddbb6d75c4c5

FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
RUN <<EOF
touch "${prefix}/dummy-arm64-only"
EOF
14 changes: 14 additions & 0 deletions tools/dummy-arm64-only/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: dummy-arm64-only
version: "0.1.0"
binary: "false"
check: "" # No binary
platforms:
- linux/arm64
tags:
- org/uniget
- category/development
homepage: https://github.com/uniget-org/tools
repository: https://github.com/uniget-org/tools
description: Testing of uniget-org/tools
Loading