Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 7d67080

Browse files
committed
feat(install): add gh actions for installer
1 parent 501a2ed commit 7d67080

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ jobs:
117117
# TODO: handle tagging releases correctly
118118
tags: ${{ github.sha }}
119119
# TODO: add cache_froms once we have full releases
120+
- name: Deploy installer
121+
uses: netlify/actions/build@master
122+
env:
123+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_INSTALL_SITE_ID }}

install/_headers

Lines changed: 0 additions & 2 deletions
This file was deleted.

install/_redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/* /install.sh 200!
1+
/* /install.txt 200!

install/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

33
mkdir -p build
4-
cp _headers _redirects build
5-
sed -e "s/{{git_commit}}/$(git rev-parse HEAD)/" install.sh > build/install.sh
4+
cp _redirects build
5+
sed -e "s/{{git_commit}}/$(git rev-parse HEAD)/" install.sh > build/install.txt

install/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22
# rCTF installation script
3-
# Supports Debian-like distros and Arch Linux
43

54
set -e
65

@@ -53,7 +52,7 @@ do_install() {
5352
info "Installing dependencies..."
5453

5554
if [ ! -x "$(command -v docker)" ]; then
56-
curl https://get.docker.com | sh
55+
curl -fsS https://get.docker.com | sh
5756
fi
5857

5958
if [ ! -x "$(command -v docker-compose)" ]; then

0 commit comments

Comments
 (0)