Skip to content

Commit

Permalink
update to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
delargement committed Sep 7, 2023
1 parent bb2bc89 commit d5969f3
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 205 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/lint.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Push image to AppVenture registry
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.nush.app
repository: ctfd
tags: latest
49 changes: 0 additions & 49 deletions .github/workflows/mysql.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/postgres.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/sqlite.yml

This file was deleted.

25 changes: 11 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'

services:
ctfd:
build: .
image: registry.nush.app/ctfd:latest
user: root
restart: always
ports:
Expand All @@ -15,25 +15,20 @@ services:
- LOG_FOLDER=/var/log/CTFd
- ACCESS_LOG=-
- ERROR_LOG=-
- REVERSE_PROXY=true
volumes:
- .data/CTFd/logs:/var/log/CTFd
- .data/CTFd/uploads:/var/uploads
- .:/opt/CTFd:ro
depends_on:
- db
networks:
default:
primary:
internal:

nginx:
image: nginx:1.17
volumes:
- ./conf/nginx/http.conf:/etc/nginx/nginx.conf
ports:
- 80:80
depends_on:
- ctfd
labels:
- "traefik.enable=true"
- "traefik.http.routers.ctfd.rule=Host(`ctfd.nush.app`)"
- "traefik.http.routers.ctfd.entrypoints=https"
- "traefik.http.routers.ctfd.tls=true"
- "traefik.http.routers.ctfd.tls.certresolver=tlsresolver"

db:
image: mariadb:10.4.12
Expand All @@ -59,6 +54,8 @@ services:
internal:

networks:
default:
primary:
external:
name: primary
internal:
internal: true

0 comments on commit d5969f3

Please sign in to comment.