Fix cache-related error on second build attempt

This commit is contained in:
Condorra 2024-10-27 21:02:04 +11:00
parent 3f25025088
commit f82b4fd127
2 changed files with 4 additions and 6 deletions

View File

@ -3,9 +3,9 @@ set -Eeuo pipefail
export HOME=$(pwd) export HOME=$(pwd)
buildah --root containers build -f wwp-repo/container/Containerfile -t quay.io/blasthavers/worldwideportal:latest buildah build -f wwp-repo/container/Containerfile -t quay.io/blasthavers/worldwideportal:latest
echo "$CONTAINER_REGISTRY_KEY" | buildah login --password-stdin --username blasthavers quay.io echo "$CONTAINER_REGISTRY_KEY" | buildah login --password-stdin --username blasthavers quay.io
DATE=$(date +"%Y%m%d") DATE=$(date +"%Y%m%d")
buildah --root containers tag quay.io/blasthavers/worldwideportal:latest "quay.io/blasthavers/worldwideportal:$DATE" buildah tag quay.io/blasthavers/worldwideportal:latest "quay.io/blasthavers/worldwideportal:$DATE"
buildah --root containers push quay.io/blasthavers/worldwideportal:latest buildah push quay.io/blasthavers/worldwideportal:latest
buildah --root containers push "quay.io/blasthavers/worldwideportal:$DATE" buildah push "quay.io/blasthavers/worldwideportal:$DATE"

View File

@ -54,8 +54,6 @@ jobs:
- name: wwpapp - name: wwpapp
- name: wwpserver - name: wwpserver
- name: wwp-repo - name: wwp-repo
caches:
- name: containers
params: params:
CONTAINER_REGISTRY_KEY: ((container_registry_key)) CONTAINER_REGISTRY_KEY: ((container_registry_key))
run: run: