tangled
alpha
login
or
join now
tangled.org
/
knot-docker
89
fork
atom
Community maintained Docker config for the knot server
89
fork
atom
overview
issues
3
pulls
1
pipelines
Update publish.yml
knotbin.com
6 months ago
54063f4b
4538b478
0/1
publish.yml
failed
4s
+5
-2
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
publish.yml
+5
-2
.tangled/workflows/publish.yml
···
10
10
- docker
11
11
- coreutils
12
12
- gnused
13
13
+
- gnugrep
13
14
14
15
steps:
15
16
- name: "Extract version from Dockerfile"
16
17
command: |
17
17
-
export TAG=$(grep -E '^arg TAG=' Dockerfile | sed -E "s/arg TAG='?([^']+)'?/\1/i")
18
18
+
export TAG=$(grep -iE '^arg TAG=' Dockerfile | sed -E "s/arg TAG='?([^']+)'?/\1/i")
18
19
echo "Detected TAG=$TAG"
19
19
-
echo "TAG=$TAG" >> $TANGLED_ENV_FILE # make TAG available to later steps
20
20
+
if [ -n "$TANGLED_ENV_FILE" ]; then
21
21
+
echo "TAG=$TAG" >> "$TANGLED_ENV_FILE"
22
22
+
fi
20
23
21
24
- name: "Log in to Docker Hub"
22
25
command: |