-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.sh
executable file
·24 lines (21 loc) · 910 Bytes
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
set -euo pipefail
packager=docker
if ! command -v docker &>/dev/null; then
packager=podman
fi
name=jmail
latest_version=$(git describe --tags --abbrev=0 | cut -d'-' -f2)
$packager build \
--sbom=true \
--label org.opencontainers.image.created=$(date +%Y-%m-%dT%H:%M:%S%z) \
--label org.opencontainers.image.authors=gh:@ffimnsr \
--label org.opencontainers.image.description="Outbound SMTP email sender." \
--label org.opencontainers.image.revision=$(git rev-parse HEAD) \
--label org.opencontainers.image.source=$(git remote get-url origin) \
--label org.opencontainers.image.title=$name \
--label org.opencontainers.image.url=https://hub.docker.com/r/ifn4/$name \
--label org.opencontainers.image.documentation=https://hub.docker.com/r/ifn4/$name \
--label org.opencontainers.image.version=$latest_version\
-f Containerfile \
-t ghcr.io/ffimnsr/jmail:latest .