Skip to content
Snippets Groups Projects
Verified Commit 7500cfe9 authored by Jonas Fierlings's avatar Jonas Fierlings
Browse files

ci: Enable example tests

parent 5997c35c
No related branches found
No related tags found
1 merge request!115ci: Enable example tests
Pipeline #1576895083 passed with warnings
......@@ -11,6 +11,9 @@ include:
- .gitlab/ci/release.gitlab-ci.yml
- local: containers/container-tools/.gitlab-ci.yml
- local: templates/buildx-build/examples/readme.gitlab-ci.yml
- local: templates/buildx-build-with-metadata/examples/readme.gitlab-ci.yml
- local: templates/buildx-metadata/examples/readme.gitlab-ci.yml
stages:
- build
......
......@@ -130,6 +130,7 @@ CI [ref:buildx-build-with-metadata:examples:README.md].
include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-build-with-metadata@~latest
inputs:
images: ["$CI_REGISTRY_IMAGE/app"]
platforms: [linux/amd64, linux/arm64]
tags:
- type=schedule
......
......@@ -2,18 +2,25 @@
#
# SPDX-License-Identifier: CC0-1.0
---
.buildx-build-with-metadata-examples-readme:
rules:
- changes:
paths:
- templates/buildx-build-with-metadata/examples/readme.gitlab-ci.yml
- templates/buildx-build-with-metadata/template.yml
include:
# [tag:buildx-build-with-metadata:examples:README.md]
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-build-with-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-build-with-metadata examples [templates/buildx-build-with-metadata/README.md]
stage: 🧪 Test
job-name: buildx-build-with-metadata examples [README.md]
stage: test
extends:
- .rules:buildx-build-with-metadata-examples
- .buildx-build-with-metadata-examples-readme
file: templates/buildx-build-with-metadata/examples/Dockerfile
# Settings from the readme
images: ["$CI_REGISTRY_IMAGE/app"]
platforms: [linux/amd64, linux/arm64]
tags:
- type=schedule
......@@ -26,11 +33,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-build-with-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-build-with-metadata examples [templates/buildx-build-with-metadata/README.md]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-build-with-metadata-examples
- .buildx-build-with-metadata-examples-readme
# Settings from the readme
file: templates/buildx-build-with-metadata/examples/Dockerfile
platforms: [linux/amd64, linux/arm64]
......
# SPDX-FileCopyrightText: 2024 Jonas Fierlings <fnoegip@gmail.com>
#
# SPDX-License-Identifier: CC0-1.0
---
include:
- local: templates/buildx-build/template.yml
inputs:
image: ${CONTAINER_TOOLS_IMAGE}
stage: 🧪 Test
extends:
- .rules:buildx-build-examples
job-name: buildx-build ci [minimal]
file: templates/buildx-build/examples/Dockerfile
- local: templates/buildx-build/template.yml
inputs:
image: ${CONTAINER_TOOLS_IMAGE}
stage: 🧪 Test
extends:
- .rules:buildx-build-examples
job-name: buildx-build ci [git-context]
context: "${CI_REPOSITORY_URL}#${CI_COMMIT_REF_NAME}"
file: templates/buildx-build/examples/Dockerfile
platforms: [linux/amd64, linux/arm64]
......@@ -2,16 +2,22 @@
#
# SPDX-License-Identifier: CC0-1.0
---
.buildx-build-examples-readme:
rules:
- changes:
paths:
- templates/buildx-build/examples/readme.gitlab-ci.yml
- templates/buildx-build/template.yml
include:
# [tag:buildx-build:examples:README.md]
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-build@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-build examples [README.md]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-build-examples
- .buildx-build-examples-readme
file: templates/buildx-build/examples/Dockerfile
# Settings from the readme
platforms: [linux/amd64, linux/arm64]
......@@ -22,11 +28,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-build@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-build examples [templates/buildx-build/README.md#git-context]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-build-examples
- .buildx-build-examples-readme
# Settings from the readme
context: https://gitlab.com/PigeonF/ci.git#${CI_COMMIT_SHA}:templates/buildx-build/examples/
tags: ["$CI_REGISTRY_IMAGE/examples/app:latest"]
......@@ -35,11 +40,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-build@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-build examples [templates/buildx-build/README.md#path-context]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-build-examples
- .buildx-build-examples-readme
# Settings from the readme
context: ${CI_PROJECT_DIR}/templates/buildx-build/examples/
tags: ["$CI_REGISTRY_IMAGE/examples/app:latest"]
......@@ -48,11 +52,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-build@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-build examples [templates/buildx-build/README.md#registries-input]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-build-examples
- .buildx-build-examples-readme
file: templates/buildx-build/examples/Dockerfile
# Settings from the readme
registries:
......
# SPDX-FileCopyrightText: 2024 Jonas Fierlings <fnoegip@gmail.com>
#
# SPDX-License-Identifier: CC0-1.0
---
variables:
DOCKER_IMAGE: localhost:5000/name/app
include:
- local: templates/buildx-metadata/template.yml
inputs:
image: ${CONTAINER_TOOLS_IMAGE}
stage: 🧪 Test
extends:
- .rules:buildx-metadata-examples
job-name: buildx-metadata ci [multi-images]
images: ["${DOCKER_IMAGE}", "ghcr.io/name/app"]
tags:
- type=schedule
- type=ref,event=branch
- type=ref,event=tag
- type=ref,event=mr
- type=sha
......@@ -2,16 +2,22 @@
#
# SPDX-License-Identifier: CC0-1.0
---
.buildx-metadata-examples-readme:
rules:
- changes:
paths:
- templates/buildx-metadata/examples/readme.gitlab-ci.yml
- templates/buildx-metadata/template.yml
include:
# [tag:buildx-metadata:examples:README.md]
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [README.md]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
images: [name/app]
tags:
......@@ -27,11 +33,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#examples]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
images: [name/app]
tags:
......@@ -47,11 +52,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#images-input]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
images:
- name/foo
......@@ -64,11 +68,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#flavor-input]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
flavor:
- latest=auto
......@@ -79,11 +82,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typeschedule]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
# minimal
......@@ -101,11 +103,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typesemver]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
# minimal
......@@ -119,11 +120,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typepep440]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
# minimal
......@@ -137,11 +137,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typematch]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
# minimal
......@@ -157,11 +156,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typeedge]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
# minimal
......@@ -175,11 +173,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typeref]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
# branch event
......@@ -197,11 +194,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typeraw]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
- type=raw,value=foo
......@@ -219,11 +215,10 @@ include:
- component: $CI_SERVER_FQDN/PigeonF/ci/buildx-metadata@${CI_COMMIT_SHA}
inputs:
# Settings so the job actually works during CI
image: ${CONTAINER_TOOLS_IMAGE}
job-name: buildx-metadata examples [templates/buildx-metadata/README.md#typesha]
stage: 🧪 Test
stage: test
extends:
- .rules:buildx-metadata-examples
- .buildx-metadata-examples-readme
# Settings from the readme
tags:
# minimal (short sha)
......
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