diff --git a/docker/gitea/Dockerfile b/docker/gitea/Dockerfile index 40c579e380..5b06ac27d1 100644 --- a/docker/gitea/Dockerfile +++ b/docker/gitea/Dockerfile @@ -27,7 +27,7 @@ FROM docker.io/library/golang:1.18-bullseye AS build-env LABEL maintainer="infra-root@openstack.org" -ARG GITEA_VERSION="v1.17.2" +ARG GITEA_VERSION="v1.17.3" ENV TAGS "bindata $TAGS" #Build deps diff --git a/playbooks/roles/gitea/tasks/main.yaml b/playbooks/roles/gitea/tasks/main.yaml index 776ff8a367..025f077cf5 100644 --- a/playbooks/roles/gitea/tasks/main.yaml +++ b/playbooks/roles/gitea/tasks/main.yaml @@ -70,7 +70,10 @@ chdir: /etc/gitea-docker/ - name: Run docker prune to cleanup unneeded images shell: - cmd: docker image prune -f + # Keep images around for 3 days before pruning them. Allows for + # easy rollback if necessary. Note "3d" seems to be rejected by + # docker but 72 hours == 3 days. + cmd: docker image prune -f --filter "until=72h" # User management outside of service bringup to avoid confusion between # the two stages.