From 7df811beb4e81037c07a800c0172021531abc43b Mon Sep 17 00:00:00 2001 From: 1e99 <1e99@1e99.eu> Date: Sun, 29 Dec 2024 09:37:34 +0100 Subject: [PATCH] add build.sh --- README.md | 2 +- build.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 build.sh diff --git a/README.md b/README.md index b5d9162..6433c3b 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Setting up PassED can be done with docker compose or from source. As the website ```yaml services: "passed": - image: "git.1e99.eu/1e99/passed:latest" + image: "git.1e99.eu/1e99/passed:latest" # You can also use the latest commit hash as the tag to fix your image to a version. volumes: - "./passed:/etc/passed" environment: diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..97367b7 --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -e + +tag_latest=git.1e99.eu/1e99/passed:latest +tag_commit=git.1e99.eu/1e99/passed:$(git rev-parse HEAD) + +# TODO: Figure out other platforms +docker image build \ + --force-rm \ + --platform linux/amd64 \ + --tag $tag_latest \ + --tag $tag_commit \ + . + +docker image push $tag_latest +docker image push $tag_commit