From c7167826c54857d153e3d1d1689c86e1efaee776 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 28 Jan 2023 20:19:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20initial=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 2 + .github/workflows/build-image.yml | 44 ++++++++++++++++++++++ Dockerfile | 5 +++ README.md | 5 +++ root/etc/terminfo/r/rxvt-unicode-256color | Bin 0 -> 2234 bytes 5 files changed, 56 insertions(+) create mode 100644 .dockerignore create mode 100644 .github/workflows/build-image.yml create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 root/etc/terminfo/r/rxvt-unicode-256color diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..35cdaf3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +README.md diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml new file mode 100644 index 0000000..e75e0e7 --- /dev/null +++ b/.github/workflows/build-image.yml @@ -0,0 +1,44 @@ +name: Build image + +on: [push, workflow_dispatch] + +env: + ENDPOINT: "neingeist/docker-mod-terminfos" + BRANCH: "master" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.3 + + - name: Build image + run: | + docker build --no-cache -t ${{ github.sha }} . + - name: Tag image + if: ${{ github.ref == format('refs/heads/{0}', env.BRANCH) && env.ENDPOINT != 'user/endpoint' }} + run: | + docker tag ${{ github.sha }} ${ENDPOINT} + docker tag ${{ github.sha }} ${ENDPOINT}:${{ github.sha }} + docker tag ${{ github.sha }} ghcr.io/${ENDPOINT} + docker tag ${{ github.sha }} ghcr.io/${ENDPOINT}:${{ github.sha }} + - name: Credential check + if: ${{ github.ref == format('refs/heads/{0}', env.BRANCH) && env.ENDPOINT != 'user/endpoint' }} + run: | + echo "CR_USER=${{ secrets.CR_USER }}" >> $GITHUB_ENV + echo "CR_PAT=${{ secrets.CR_PAT }}" >> $GITHUB_ENV + if [[ "${{ secrets.CR_USER }}" == "" && "${{ secrets.CR_PAT }}" == "" ]]; then + echo "::error::Push credential secrets missing." + echo "::error::You must set CR_USER & CR_PAT as secrets in your repo settings." + echo "::error::See https://github.com/linuxserver/docker-mods/blob/master/README.md for more information/instructions." + exit 1 + fi + - name: Login to GitHub Container Registry + if: ${{ github.ref == format('refs/heads/{0}', env.BRANCH) && env.CR_USER && env.CR_PAT && env.ENDPOINT != 'user/endpoint' }} + run: | + echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ secrets.CR_USER }} --password-stdin + - name: Push tags to GitHub Container Registry + if: ${{ github.ref == format('refs/heads/{0}', env.BRANCH) && env.CR_USER && env.CR_PAT && env.ENDPOINT != 'user/endpoint' }} + run: | + docker push ghcr.io/${ENDPOINT}:${{ github.sha }} + docker push ghcr.io/${ENDPOINT} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..32cb46f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM scratch + +LABEL maintainer="neingeist" + +COPY root/ / diff --git a/README.md b/README.md new file mode 100644 index 0000000..4b39892 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# docker-mod-terminfos + +A Docker mod for linuxserver.io Docker images to install terminfo entries. + +Set `DOCKER_MODS=ghcr.io/neingeist/docker-mod-terminfos`. diff --git a/root/etc/terminfo/r/rxvt-unicode-256color b/root/etc/terminfo/r/rxvt-unicode-256color new file mode 100644 index 0000000000000000000000000000000000000000..28e1dffb2036de786762b2b9cafc74dd438d2e16 GIT binary patch literal 2234 zcmb_cO=w(I6h8O8OzRH?Ma9ywI@MgQX_L&m?{CIuGELg1v8F#XmJW?6O*8qKbpA4# z$t0bb6bssg3WXx5i!LleHi|_NDGG`%T-1#qxawBi_yZ!kdY*IMn>1-sq~aUScfa%9 zbMD`{ceaVcupOR&l4y^V7v?LS)k1c>n3?EQwliML70Zp)YOFF*&Swi_xmYb*nT}yh zjDzN4JJYcf*+QmRiw!T%RVMP!f)KD`OaOiS5ePU6_rO+E{B<7)|NKV!t-uIo0cg+$ zkH9u~5}t+*RBRZ4K^THzW^}}ospE*_qhHPYR|0GTm2ii zyD{F-os}$4-=ptm?*+uep+3CQ@B1h8QGHy`>P5Y(*Y#KQi~5_ZdN-cszp0n+a@@D| ztNOD3k^TwheZjdq+Fos2JNM7G`PBQ%2HM)JfA{_f$M~ylQzVFfII=bJSR@wN3|k;N zBD1n&$c!gTN@mI^m{SOY(GhhJ+ZWNO4Wka+qCvtS+=tR2T1weDd~Qe#m1B1roxNy% zf#@lll%r^eAUdkN%@ExgN6*e97z8OJZY3$mB5+A!u!!+8)0oqbPCjVLVNMPui$HO_ z;)Ikv-Tu6aclTltt_`Of*-=8kq&#g8WtSF3V|b=#dA8?xNzZXSBOZ?v7zkDpcf(`v z!Q3G@k7zC-&@vLI5DbG{#b_wv1_u}xbDPm+OfV)1Rh*Dz&e?~aLlVb_=hh3+9+Y_N zbZ|@#wFs?%6Tl0X1aFlnwOVz_*av0d*#_U_&n-#^t{acj}A23{(U|*4?J;#Zruz349?u zXC8|(VusyDQ})P;B_}x8WX}mbi#;Rs9QMq>%TSfQ+vl*>&SCv8bKqL>z_2WYRM1sB UL2uQZ!M_XrD|O)G+SL#L09^@)M*si- literal 0 HcmV?d00001