Compare commits
No commits in common. "ac1849016d4fc1a2b6da9b2c0f4acf0eb7a050eb" and "96f89486addb2ef0494b34bfe5506c390658890d" have entirely different histories.
ac1849016d
...
96f89486ad
|
|
@ -1,13 +0,0 @@
|
||||||
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,8 +12,6 @@ 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 --name hello-world hello-world
|
run: docker run 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
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
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,16 +2,5 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
download_version=$(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest | jq -r '.name')
|
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_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