Compare commits
10 Commits
96f89486ad
...
ac1849016d
| Author | SHA1 | Date |
|---|---|---|
|
|
ac1849016d | |
|
|
0fb23affba | |
|
|
48bf908528 | |
|
|
568c70b6de | |
|
|
849c22ceaa | |
|
|
f171a12aa7 | |
|
|
2d3f1806f3 | |
|
|
2442f2eed6 | |
|
|
2bbe534107 | |
|
|
c2aab18387 |
|
|
@ -0,0 +1,13 @@
|
||||||
|
name: Code Quality Test
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
Quality-Check:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Check for os.system (#2)
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
git ls-files | xargs grep os.system
|
||||||
|
exit $(git ls-files | xargs grep os.system | wc -l)
|
||||||
|
|
@ -12,6 +12,8 @@ jobs:
|
||||||
sh setup.sh
|
sh setup.sh
|
||||||
sh scripts/get-docker.sh
|
sh scripts/get-docker.sh
|
||||||
- name: Check if Docker was installed
|
- name: Check if Docker was installed
|
||||||
run: docker run hello-world
|
run: docker run --name hello-world hello-world
|
||||||
|
- name: Clean up hello-world container
|
||||||
|
run: docker rm hello-world
|
||||||
- name: Clean up network (see #3)
|
- name: Clean up network (see #3)
|
||||||
run: docker network rm main_subnet
|
run: docker network rm main_subnet
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM ubuntu-22.04
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y ca-certificates curl gnupg lsb-release nano wget tmux htop python3 python3-pip git certbot borgbackup jq
|
||||||
|
CMD ["/bin/bash"]
|
||||||
|
|
@ -2,5 +2,16 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
wget -4 -O /usr/local/bin/borg-linux64 $(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest| jq -r '.assets | .[] | select(.name == "borg-linux64") | .browser_download_url')
|
download_version=$(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest | jq -r '.name')
|
||||||
|
download_url=$(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest | jq -r '.assets | .[] | select(.name == "borg-linux64") | .browser_download_url')
|
||||||
|
|
||||||
|
echo "Version: $download_version"
|
||||||
|
echo "URL: $download_url"
|
||||||
|
echo 'Continue (y/N)?'
|
||||||
|
read answer
|
||||||
|
if [ "$answer" == "${answer#[Yy]}" ] ;then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
wget -4 -O /usr/local/bin/borg-linux64 $download_url
|
||||||
chmod -v +x /usr/local/bin/borg-linux64
|
chmod -v +x /usr/local/bin/borg-linux64
|
||||||
Loading…
Reference in New Issue