]> sigrok.org Git - sigrok-build.git/commitdiff
docker: Add appimage docker runner script
authorSoeren Apel <redacted>
Tue, 5 Mar 2024 23:09:07 +0000 (00:09 +0100)
committerSoeren Apel <redacted>
Tue, 5 Mar 2024 23:09:07 +0000 (00:09 +0100)
docker-sigrok-appimage.sh [new file with mode: 0755]

diff --git a/docker-sigrok-appimage.sh b/docker-sigrok-appimage.sh
new file mode 100755 (executable)
index 0000000..273c88b
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Note: Use "export CR_PAT=ghp_...." to make the github token available to this script
+# Use "export GH_USER=..." to set your github user
+# See https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
+
+cd docker
+docker build --progress=plain -f sigrok-appimage-x86_64.Dockerfile -t sigrok-appimage-x86_64 . && \
+       echo $CR_PAT | docker login ghcr.io -u $GH_USER --password-stdin && \
+       docker tag sigrok-appimage-x86_64:latest ghcr.io/$GH_USER/sigrok-appimage-x86_64:latest && \
+       docker push ghcr.io/$GH_USER/sigrok-appimage-x86_64:latest
+cd ..