Community maintained Docker config for the knot server

Update publish.yml

+5 -2
+5 -2
.tangled/workflows/publish.yml
··· 10 10 - docker 11 11 - coreutils 12 12 - gnused 13 + - gnugrep 13 14 14 15 steps: 15 16 - name: "Extract version from Dockerfile" 16 17 command: | 17 - export TAG=$(grep -E '^arg TAG=' Dockerfile | sed -E "s/arg TAG='?([^']+)'?/\1/i") 18 + export TAG=$(grep -iE '^arg TAG=' Dockerfile | sed -E "s/arg TAG='?([^']+)'?/\1/i") 18 19 echo "Detected TAG=$TAG" 19 - echo "TAG=$TAG" >> $TANGLED_ENV_FILE # make TAG available to later steps 20 + if [ -n "$TANGLED_ENV_FILE" ]; then 21 + echo "TAG=$TAG" >> "$TANGLED_ENV_FILE" 22 + fi 20 23 21 24 - name: "Log in to Docker Hub" 22 25 command: |