From 127d39d7454b9289dfda7372f25d2e2cdc4bc2c6 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 26 Sep 2024 20:26:16 +0300 Subject: [PATCH] feat: script for building and pushing to own registry --- scripts/buildandpush.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/buildandpush.sh diff --git a/scripts/buildandpush.sh b/scripts/buildandpush.sh new file mode 100755 index 0000000..445787d --- /dev/null +++ b/scripts/buildandpush.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +export COMMIT=$(git log -1 --pretty=%h) +podman build -t oci:5000/liljamo/liljamo-dev-zola:latest -t oci:5000/liljamo/liljamo-dev-zola:"$COMMIT" . +podman push --tls-verify=false oci:5000/liljamo/liljamo-dev-zola:latest +podman push --tls-verify=false oci:5000/liljamo/liljamo-dev-zola:"$COMMIT" -- 2.44.1