cicd(actions): deploy action instantiating container based on compose.yaml
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4s
This commit is contained in:
parent
75f4061d2a
commit
be3508ff43
1 changed files with 17 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 nextcloud down
|
||||||
|
docker compose -p nextcloud up -d --remove-orphans
|
||||||
Loading…
Add table
Add a link
Reference in a new issue