25cdc97950
Move some common assets into a top-level assets/ directory. Services can reference these assets via https://opendev.org/opendev/system-config/raw/branch/master/assets/<file> in <img> tags, etc. Some services want to embed these into their images, but we wish to only keep one canonical copy. For this, add a Dockerfile and jobs that creates a simple bundle of assets in opendevorg/assets. This can be referenced in other builds; the new BuildKit bind-mount is particularly useful for this (c.f. I36bdc76471eec5380a676ebcdd885a88d3985976). Change-Id: I3931566eb86a0618705d276445fa0a5f659692ea
28 lines
794 B
YAML
28 lines
794 B
YAML
# Opendev assets image build
|
|
- job:
|
|
name: system-config-build-image-assets
|
|
provides: assets-container-image
|
|
description: Build Opendev assets bundle
|
|
parent: system-config-build-image
|
|
vars: &assets_vars
|
|
docker_images:
|
|
- context: assets
|
|
repository: opendevorg/assets
|
|
files: &assets_files
|
|
- assets/
|
|
|
|
- job:
|
|
name: system-config-upload-image-assets
|
|
description: Build and upload assets bundle
|
|
provides: assets-container-image
|
|
parent: system-config-upload-image
|
|
vars: *assets_vars
|
|
files: *assets_files
|
|
|
|
- job:
|
|
name: system-config-promote-image-assets
|
|
description: Promote a previously published assets bundle image to latest.
|
|
parent: system-config-promote-image
|
|
vars: *assets_vars
|
|
files: *assets_files
|