Skip to content

Commit

Permalink
remove sudo but try with docker group
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Alexander Strømseng committed Mar 19, 2024
1 parent bc420e5 commit 0997cae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/autoredeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
# Create .env.production with HOST_URL Frontend
echo "HOST_URL=${{ vars.HOST_URL }}" >> .env.production
- name: Docker build
run: sudo -S docker-compose build
run: docker-compose build
- name: Docker up
run: sudo -S docker-compose up -d
run: docker-compose up -d
4 changes: 4 additions & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ Setup a self hosted GitHub runner for the repository.

`sudo useradd outreach-github-runner`

`sudo usermod -a -G docker outreach-github-runner`

`cd /actions-runner/`

`RUNNER_ALLOW_RUNASROOT=1 ./config.sh --url https://github.com/NTNU-SmallSat-Lab/outreach-website --token XXXXXXXXXXXXXXXXXXXX`

`./svc.sh install outreach-github-runner`

`sudo ./svc.sh start`
Expand Down

0 comments on commit 0997cae

Please sign in to comment.