ci: Don't --initialize by default

We want change detection.  Also expose `--force-nocache` because
it may be useful in the future.
This commit is contained in:
Colin Walters 2023-09-07 17:32:51 -04:00
parent c2ec7c0230
commit 2eb018ce44
1 changed files with 4 additions and 1 deletions

View File

@ -6,11 +6,14 @@ stages:
- build
build:
variables:
COMPOSE_INITIALIZE: ""
FORCE: ""
stage: build
before_script:
# Log into the registry
- echo "$CI_REGISTRY_PASSWORD" | podman login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
script:
- rpm-ostree install distribution-gpg-keys
- rpm-ostree compose image --initialize --format=registry fedora.yaml ${CI_REGISTRY_IMAGE}/fedora
- rpm-ostree compose image ${COMPOSE_INITIALIZE:+--initialize} ${FORCE:+--force-nocache} --format=registry fedora.yaml ${CI_REGISTRY_IMAGE}/fedora