Skip to content

Fix build script #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions scripts/build/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -uexo pipefail

if [ -e ".env" ]; then
source ./.env
fi
Expand All @@ -9,6 +11,12 @@ if [ -z "$GITHUB_TOKEN" ]; then
exit 1
fi

if [ -z "$TAG" ]; then
echo "No tag!"
exit 1
fi


# Debug with gpg --card-status
# Initialize signing.
echo "Test" | gpg --armor --detach-sign
Expand All @@ -18,8 +26,8 @@ echo "Using GPG Agent Socket: ${GPG_AGENT_SOCKET}"

DOCKER_IMAGE="$(docker build -q .)"

docker run -e GITHUB_TOKEN -v "${GPG_AGENT_SOCKET}:/home/user/.gnupg/S.gpg-agent:rw" -v "$PWD/../../:/home/user/app" -it "$DOCKER_IMAGE"

git push
git tag -s "$TAG" -m "Update to $TAG"
git push origin "$TAG"

docker run -e GITHUB_TOKEN -v "${GPG_AGENT_SOCKET}:/home/user/.gnupg/S.gpg-agent:rw" -v "$PWD/../../:/home/user/app" -it "$DOCKER_IMAGE"
Loading