Skip to content

Instantly share code, notes, and snippets.

@jstotz
Created April 26, 2024 14:23
Show Gist options
  • Save jstotz/59cd81473993629ced15b435cc548ff3 to your computer and use it in GitHub Desktop.
Save jstotz/59cd81473993629ced15b435cc548ff3 to your computer and use it in GitHub Desktop.
Build Rework
builds:
- name: shared
dockerfile: shared.Dockerfile
services:
- name: service1
# Equivalent to placing this build config in a top-level build named "services2.init.init1"
build:
dockerfile: service1.Dockerfile
# If the "image" field is omitted, a local "build" stanza must be defined. In that case, its value defaults to
# a build reference to the build name.
init:
- name: init1
# References to top-level builds must be explicit. In this context this reference would expand to the full
# URL of the image we built.
image: ${builds.shared}
- name: service2
init:
# Equivalent to placing this build config in a top-level build named "services.services2.init.init1"
- name: init1
build:
dockerfile: init.Dockerfile
jobs:
- name: job1
# Equivalent to placing this build config in a top-level build named "jobs.job1"
build:
dockerfile: job.Dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment