File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -uexo pipefail
4
+
3
5
if [ -e " .env" ]; then
4
6
source ./.env
5
7
fi
@@ -9,6 +11,12 @@ if [ -z "$GITHUB_TOKEN" ]; then
9
11
exit 1
10
12
fi
11
13
14
+ if [ -z " $TAG " ]; then
15
+ echo " No tag!"
16
+ exit 1
17
+ fi
18
+
19
+
12
20
# Debug with gpg --card-status
13
21
# Initialize signing.
14
22
echo " Test" | gpg --armor --detach-sign
@@ -18,8 +26,8 @@ echo "Using GPG Agent Socket: ${GPG_AGENT_SOCKET}"
18
26
19
27
DOCKER_IMAGE=" $( docker build -q .) "
20
28
21
- docker run -e GITHUB_TOKEN -v " ${GPG_AGENT_SOCKET} :/home/user/.gnupg/S.gpg-agent:rw" -v " $PWD /../../:/home/user/app" -it " $DOCKER_IMAGE "
22
-
23
29
git push
24
30
git tag -s " $TAG " -m " Update to $TAG "
25
31
git push origin " $TAG "
32
+
33
+ docker run -e GITHUB_TOKEN -v " ${GPG_AGENT_SOCKET} :/home/user/.gnupg/S.gpg-agent:rw" -v " $PWD /../../:/home/user/app" -it " $DOCKER_IMAGE "
You can’t perform that action at this time.
0 commit comments