Skip to content

Commit

Permalink
update to 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
delargement committed Sep 7, 2023
1 parent af5e88d commit a1dd25b
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 262 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/docker-build.yml

This file was deleted.

44 changes: 0 additions & 44 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: [ 3.6.0 ]
pull_request:
branches: [ 3.6.0 ]

# 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
53 changes: 0 additions & 53 deletions .github/workflows/mysql.yml

This file was deleted.

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

This file was deleted.

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

This file was deleted.

26 changes: 11 additions & 15 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,26 +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:stable
restart: always
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 @@ -60,6 +54,8 @@ services:
internal:

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

0 comments on commit a1dd25b

Please sign in to comment.