#!/usr/bin/env bash set -e main() { local image="${XCR_REGISTRY:?}/router0/infisicial-cli" local git_hash git_hash="$(git rev-parse --short HEAD)" docker build -t "${image}:latest" . --provenance=false docker tag "${image}:latest" "${image}:${git_hash}" docker push "${image}:latest" docker push "${image}:${git_hash}" } main