From: Soeren Apel Date: Tue, 5 Mar 2024 23:09:07 +0000 (+0100) Subject: docker: Add appimage docker runner script X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d747965148f89f49654ed578bbaa00dbe400bda0;p=sigrok-build.git docker: Add appimage docker runner script --- diff --git a/docker-sigrok-appimage.sh b/docker-sigrok-appimage.sh new file mode 100755 index 0000000..273c88b --- /dev/null +++ b/docker-sigrok-appimage.sh @@ -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 ..