Skip to content

Commit 7ed26bd

Browse files
committed
chore(release): add quick script to publish latest image
1 parent 6f938dd commit 7ed26bd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

release.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -exv
4+
5+
IMAGE_NAME="quay.io/almacdon/app-discovery-operator"
6+
IMAGE_TAG=$(git rev-parse --short=7 HEAD)
7+
8+
podman build -t "${IMAGE_NAME}:${IMAGE_TAG}" .
9+
podman tag "${IMAGE_NAME}:${IMAGE_TAG}" "${IMAGE_NAME}:latest"
10+
11+
podman push "${IMAGE_NAME}:${IMAGE_TAG}"
12+
podman push "${IMAGE_NAME}:latest"

0 commit comments

Comments
 (0)