container-build: Don't re-use cached layer by default

This allows container builds to use latest remote state, if available,
without having to build versioning into the container files themselves.
This commit is contained in:
Alex Palaistras 2021-07-24 15:57:39 +01:00
parent 6859168b8c
commit 950dd3a13c

View File

@ -6,8 +6,8 @@ ConditionPathExists=/etc/container-service/%i/Containerfile
[Service]
Type=oneshot
Environment=PODMAN_BUILD_OPTIONS=
ExecStart=/bin/podman build $PODMAN_BUILD_OPTIONS --file /etc/container-service/%i/Containerfile --tag %i /etc/container-service/%i
Environment=PODMAN_BUILD_OPTIONS="--no-cache"
ExecStart=/bin/podman build $PODMAN_BUILD_OPTIONS --file /etc/container-service/%i/Containerfile --tag localhost/%i:latest /etc/container-service/%i
[Install]
WantedBy=multi-user.target