setup runner
All checks were successful
Redeploy landing on Push / Explore-Gitea-Actions (push) Successful in 7s
All checks were successful
Redeploy landing on Push / Explore-Gitea-Actions (push) Successful in 7s
This commit is contained in:
14
.gitea/workflows/deployment.yml
Normal file
14
.gitea/workflows/deployment.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Redeploy landing on Push
|
||||||
|
run-name: ${{ gitea.actor }} building image and redeploying container
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- run: docker build -t mysite .
|
||||||
|
- run: echo "Building image"
|
||||||
|
- run: docker compose up -d
|
||||||
|
- run: echo "Redeployed site"
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
rasmusBendtsenDK:
|
rasmusbendtsendk:
|
||||||
|
container_name: rasmusbendtsendk
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5001:5001"
|
- "5001:5001"
|
||||||
volumes:
|
volumes:
|
||||||
- ./pages:/app/pages
|
- /docker_apps/rasmusbendtsendk/pages:/app/pages
|
||||||
- ./static/images:/app/static/images
|
- /docker_apps/rasmusbendtsendk//static/images:/app/static/images
|
||||||
- ./static/video:/app/static/video
|
- /docker_apps/rasmusbendtsendk//static/video:/app/static/video
|
||||||
|
|||||||
Reference in New Issue
Block a user