worldwideportal/.ci/pack-container

12 lines
553 B
Bash
Executable File

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