From b5091e1243ff2584ffdb62b8430869475e6adf87 Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:15:00 +0000 Subject: [PATCH 1/8] docker image with zmk-viewer --- Dockerfile | 9 +++++++++ docker-compose.yml | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..03cab60 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest + +# install dependencies (curl, sudo, bash) +RUN apk --no-cache add curl sudo bash + +# install zmk-viewer +RUN curl -sL https://raw.githubusercontent.com/MrMarble/zmk-viewer/master/scripts/install.sh | sudo -E bash - + +WORKDIR /images diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d0ef80b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' + +services: + cheatsheet-generator: + build: + context: . + dockerfile: Dockerfile + volumes: + - ./config:/config + - ./cheatsheets:/images + command: sh -c "rm /images/*; + zmk-viewer generate cradio -f /config/*.keymap --single;" From ed732ffb442d01d28de625f9aec11614ad230517 Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:25:53 +0000 Subject: [PATCH 2/8] github workflows test --- .github/workflows/cheatsheet.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cheatsheet.yml diff --git a/.github/workflows/cheatsheet.yml b/.github/workflows/cheatsheet.yml new file mode 100644 index 0000000..757d537 --- /dev/null +++ b/.github/workflows/cheatsheet.yml @@ -0,0 +1,25 @@ +name: cheatsheet + +on: [push, pull_request, workflow_dispatch] + +jobs: + cheatsheet: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Build Docker Image + run: | + docker compose build + docker compose up + + - name: Copy Generated File + run: cp -r ../../cheatsheets /github/workspace/ + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: cheatsheets + path: cheatsheets From f97a612148ed5bd4513f90f0812fd9528e96638b Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:28:10 +0000 Subject: [PATCH 3/8] test numero duo --- .github/workflows/cheatsheet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cheatsheet.yml b/.github/workflows/cheatsheet.yml index 757d537..420d6e2 100644 --- a/.github/workflows/cheatsheet.yml +++ b/.github/workflows/cheatsheet.yml @@ -16,7 +16,7 @@ jobs: docker compose up - name: Copy Generated File - run: cp -r ../../cheatsheets /github/workspace/ + run: cp -r $(pwd)/cheatsheets /github/workspace/ - name: Upload Artifact uses: actions/upload-artifact@v2 From 65ef24a1491d0657a2a43ed86b5565c61d7aef80 Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:33:12 +0000 Subject: [PATCH 4/8] actually commit it to the repo --- .github/workflows/cheatsheet.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cheatsheet.yml b/.github/workflows/cheatsheet.yml index 420d6e2..d991f17 100644 --- a/.github/workflows/cheatsheet.yml +++ b/.github/workflows/cheatsheet.yml @@ -18,8 +18,10 @@ jobs: - name: Copy Generated File run: cp -r $(pwd)/cheatsheets /github/workspace/ - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: cheatsheets - path: cheatsheets + - name: Commit Changes + run: | + git config --global user.email "github-actions@github.com" + git config --global user.name "GitHub Actions" + git add . + git commit -m "Update cheatsheet" + git push From 2105e98a0148fcf157e644dfb5ea880c03e9c1ae Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:34:51 +0000 Subject: [PATCH 5/8] oops forgot to remove the copying --- .github/workflows/cheatsheet.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/cheatsheet.yml b/.github/workflows/cheatsheet.yml index d991f17..5fca125 100644 --- a/.github/workflows/cheatsheet.yml +++ b/.github/workflows/cheatsheet.yml @@ -15,9 +15,6 @@ jobs: docker compose build docker compose up - - name: Copy Generated File - run: cp -r $(pwd)/cheatsheets /github/workspace/ - - name: Commit Changes run: | git config --global user.email "github-actions@github.com" From abb01a5d8ab1a69cd22c0d1d2a2cc8b8184cbdc0 Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:43:57 +0000 Subject: [PATCH 6/8] maybe like this --- .github/workflows/cheatsheet.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cheatsheet.yml b/.github/workflows/cheatsheet.yml index 5fca125..f1fe274 100644 --- a/.github/workflows/cheatsheet.yml +++ b/.github/workflows/cheatsheet.yml @@ -7,18 +7,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Repository - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Build Docker Image + - name: build docker image and generate cheatsheets run: | docker compose build docker compose up - - name: Commit Changes + - name: commit cheatsheets run: | git config --global user.email "github-actions@github.com" git config --global user.name "GitHub Actions" - git add . - git commit -m "Update cheatsheet" + git add cheatsheets + git commit -m "update cheatsheet" git push From 8e594cffabbfa17a3fbe2210c122d0f5942f73a4 Mon Sep 17 00:00:00 2001 From: nikodem Date: Fri, 8 Dec 2023 09:47:17 +0000 Subject: [PATCH 7/8] I hope this was the problem --- .github/workflows/cheatsheet.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cheatsheet.yml b/.github/workflows/cheatsheet.yml index f1fe274..9a7795c 100644 --- a/.github/workflows/cheatsheet.yml +++ b/.github/workflows/cheatsheet.yml @@ -2,6 +2,9 @@ name: cheatsheet on: [push, pull_request, workflow_dispatch] +permissions: + contents: write + jobs: cheatsheet: runs-on: ubuntu-latest From 6e3bbd5140172c3ebe9daa32d5c6462f16d14a82 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 8 Dec 2023 09:47:43 +0000 Subject: [PATCH 8/8] update cheatsheet --- cheatsheets/cradio.png | Bin 0 -> 10907 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 cheatsheets/cradio.png diff --git a/cheatsheets/cradio.png b/cheatsheets/cradio.png new file mode 100644 index 0000000000000000000000000000000000000000..5def9c322efbe409c7170fee0e77ea24384d66ce GIT binary patch literal 10907 zcmeI2c|4U}+xJfr`!eoI$gC8Vh*UyEL|w*AnPo0>Y*X8iA<2}BjG4(4LI~NUkeST0 z+Q~f6^Ly;NuKT|3=Y8+tdEWc^>v{Zhe)hJ{wa&HHxqip@_#Mk%NkN8+oRJ(s5UQK9 zQnwN0KqrC_`J;&8n{QWUIuPWH;Y}$CRp%EoLnFWHXr%1hl@zWUoASgk)N%S5PX6*d zisFcu{h^Qg`KT!mTW24x)HmpO3W+DDe_6RlL#yEOuHF~zqmz25KVUGdjPJ#Dd7koZ*q?izT^zIfy=eS4VU4<{>vB>T%P$XQNcx4a+4G; zoJs#*xAkTnNIZV&(xsQ_>0De~zG$QyTwx=HYSFVjZKmB@apPnSJ$3MDTj~q?$&CGOvqzDzw+{O zwK^hXgL0bP;l}2r=FZN}p>n6zIFWQ=*<+kx^_4qge7d^2S>6bO^~RuMmPfv@uf5LC z=NA*Rt_@UCQ+qDUSzBAH)1$^hf{fC<@@~^NcW_X}kcKz!@6GQ&mQ1?C^HNy0ud}Pm z%F1eYyK=vLiXB1N3|M^jHr}TxM?^#fvtBJ5=r$MB($}{caGiDN!E{VIT#7ySwkSW} z&dzQTA0i$RPl1ezL*s0baSSIDTD2q8Y*jEAj3{f5Rqf_}okuZCNS)KRM4*Z0^z`)S z>qH3FAA{aX!IDV}F%Mgb-EJx1sk2i}N06vM7(^oWIz_+26Ih`tVFu=Z{{k9jQzJ8V zFfFh?-@c`yzcxi*$ij!$+P#3`#>dCYawZE?czX87OV1CM8fmIqSY%HLrQN0T%~QsG z5m!-B!Q=7%QpqVPDP{d0W;Q-(3JQwLHp9%UtaEd7>MUf}M&CtCi-?FsOB2<5Y2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