cicd(docker,actions): action instantiating container based on compose.yaml
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3s
This commit is contained in:
commit
54b26f4b1c
3 changed files with 33 additions and 0 deletions
17
.forgejo/workflows/deploy.yaml
Normal file
17
.forgejo/workflows/deploy.yaml
Normal 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
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
.DS_Store
|
||||||
15
compose.yaml
Normal file
15
compose.yaml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue