Skip to content

Commit

Permalink
Add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
krabiworld committed Dec 13, 2024
1 parent 5e519f3 commit 8e8dd8d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Deploy Docs

on:
push:
branches:
- main

jobs:
build:
runs-on: cloud
steps:
- uses: actions/checkout@v4

- name: Run Foxogram frontend
run: docker compose up -d --build
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM busybox:stable

COPY index.html /var/www/html/index.html

# Write httpd configuration.
RUN <<EOF cat >> /var/www/httpd.conf
H:/var/www/html
I:index.html
E404:index.html
EOF

ENTRYPOINT [ "/bin/httpd" ]
CMD [ "-f", "-p80", "-c/var/www/httpd.conf" ]
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
foxogram-docs:
build:
context: .
restart: always
networks:
- traefik
labels:
traefik.enable: true
traefik.http.routers.foxogram-docs.rule: Host(`docs.foxogram.su`)
traefik.http.routers.foxogram-docs.tls.certresolver: letsencrypt
traefik.http.services.foxogram-docs.loadbalancer.server.port: 80

networks:
traefik:
external: true

0 comments on commit 8e8dd8d

Please sign in to comment.