ci/woodpecker/push/tests Pipeline was successful
instead channel and semaphore queue + upgrade to rust 1.99
24 lines
439 B
Bash
Executable File
24 lines
439 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
IMAGE="docker.io/tintounn/steep-website"
|
|
|
|
if [ -z "${CI_COMMIT_TAG:-}" ]; then
|
|
echo "Error: CI_COMMIT_TAG is not set" >&2
|
|
exit 1
|
|
fi
|
|
|
|
TAG="${CI_COMMIT_TAG}"
|
|
IMAGE_REF="${IMAGE}:${TAG}"
|
|
|
|
echo "Building ${IMAGE_REF}..."
|
|
buildah build \
|
|
--file public/Containerfile \
|
|
--tag "${IMAGE_REF}" \
|
|
public
|
|
|
|
echo "Pushing ${IMAGE_REF}..."
|
|
buildah push "${IMAGE_REF}"
|
|
|
|
echo "Done: ${IMAGE_REF}"
|