cicd(docker,actions): action instantiating container based on compose.yaml
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3s

This commit is contained in:
Szymon Wałachowski 2025-06-04 18:42:39 +02:00
commit 54b26f4b1c
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,17 @@
name: Deploy with Docker Compose
on: [push]
jobs:
deploy:
runs-on: docker
container:
image: forgejo-actions-base:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Compose Down and Up
run: |
docker compose -p drawio down
docker compose -p drawio up -d --remove-orphans

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.DS_Store

15
compose.yaml Normal file
View file

@ -0,0 +1,15 @@
version: '3.8'
services:
drawio:
image: jgraph/drawio
container_name: drawio
restart: unless-stopped
ports:
- "9002:8080"
networks:
- szymiserver
networks:
szymiserver:
name: szymiserver
external: true