initial import
All checks were successful
Build and push Docker container / build (push) Successful in 51s

This commit is contained in:
James Andariese 2024-04-14 15:43:41 -05:00
parent 07b33262fa
commit 255a51bd53
5 changed files with 49 additions and 0 deletions

19
.github/workflows/build.yaml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Build and push Docker container
on: [push]
jobs:
build:
runs-on: metal-docker
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: |
ls -la
docker build --progress plain --iidfile iid.txt .
stringprefix() { [ ${#1} -le $2 ] && echo $1 && return 0 || stringprefix "${1%?}" $2 ; }
SHORTSHA="$(stringprefix "$GITHUB_SHA" 8)"
for TAG in "$SHORTSHA" "$GITHUB_REF_NAME";do
docker tag "`cat iid.txt`" "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
done

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
.*
!.git?*
*~
\#*#

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM debian:12
ARG INSTALL_SUM=aa322d2e2db3bf00832fdf2057299ebb3ccf69bbc9fc38f09d969294f1c70d68
WORKDIR /
RUN apt-get update && \
apt-get install -y curl iputils-ping wget bash && \
wget https://downloads.nordcdn.com/apps/linux/install.sh && \
echo "$INSTALL_SUM install.sh" | sha256sum -c && \
bash install.sh -n && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2024 cascade
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# docker-nordvpn
Dockerfile for NordVPN's linux client