Add container tag expiration (#14040)
This commit is contained in:
parent
5a75e303bd
commit
7ba3c3a81c
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ function create_pr_containers {
|
|||
docker build --target builder \
|
||||
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":builder \
|
||||
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":builder-"${PULL_REQUEST}" \
|
||||
--label quay.expires-after=8w \
|
||||
--tag "${CONTAINER_REPO}"/"${CONTAINER_APP}":builder-"${PULL_REQUEST}" .
|
||||
|
||||
# Build the pull request image
|
||||
|
|
@ -28,6 +29,7 @@ function create_pr_containers {
|
|||
docker build --target production \
|
||||
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":builder-"${PULL_REQUEST}" \
|
||||
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":pr-"${PULL_REQUEST}" \
|
||||
--label quay.expires-after=8w \
|
||||
--tag "${CONTAINER_REPO}"/"${CONTAINER_APP}":pr-"${PULL_REQUEST}" .
|
||||
|
||||
# Build the testing image
|
||||
|
|
@ -36,6 +38,7 @@ function create_pr_containers {
|
|||
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":builder-"${PULL_REQUEST}" \
|
||||
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":pr-"${PULL_REQUEST}" \
|
||||
--cache-from="${CONTAINER_REPO}"/"${CONTAINER_APP}":testing-"${PULL_REQUEST}" \
|
||||
--label quay.expires-after=8w \
|
||||
--tag "${CONTAINER_REPO}"/"${CONTAINER_APP}":testing-"${PULL_REQUEST}" .
|
||||
|
||||
# Push images to Quay
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue