---
platforms:
  # all these keys are optional - see https://osbs.readthedocs.io/en/latest/users.html#image-configuration for more info

  only:
  - x86_64
  - s390x
  - ppc64le

compose:
  inherit: false
  pulp_repos: true
  signing_intent: release

# instead of docker_api, use imagebuilder for multistage builds
image_build_method: imagebuilder

# see https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/containers_from_source_multistage_builds_in_osbs#jive_content_id_Cachito_Integration
# remote_source:
#   repo: https://github.com/redhat-developer/codeready-workspaces-images.git
#   ref: c9fcffcabc15e8cb70ede0be954ff4f1ab51c217
#  pkg_managers:
#    - gomod
# 
# then add this into dockerfile (?)
# TODO: need to generate the correct commit sha ref above, and verify we can use workdir pointing at a subfolder
# COPY $REMOTE_SOURCE $REMOTE_SOURCE_DIR
# WORKDIR $REMOTE_SOURCE_DIR/app/codeready-workspaces-devworkspace-controller
# RUN source $CACHITO_ENV_FILE
