From ea43c144e04e1458144b0ee8ab6abfe066be450e Mon Sep 17 00:00:00 2001 From: Rasmus Date: Mon, 22 Dec 2025 13:59:59 +0100 Subject: [PATCH] setup runner --- .gitea/workflows/deployment.yml | 14 ++++++++++++++ compose.yml | 9 +++++---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .gitea/workflows/deployment.yml diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml new file mode 100644 index 0000000..f99fa25 --- /dev/null +++ b/.gitea/workflows/deployment.yml @@ -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" \ No newline at end of file diff --git a/compose.yml b/compose.yml index 0733dfb..2d46d6b 100644 --- a/compose.yml +++ b/compose.yml @@ -1,9 +1,10 @@ services: - rasmusBendtsenDK: + rasmusbendtsendk: + container_name: rasmusbendtsendk build: . ports: - "5001:5001" volumes: - - ./pages:/app/pages - - ./static/images:/app/static/images - - ./static/video:/app/static/video + - /docker_apps/rasmusbendtsendk/pages:/app/pages + - /docker_apps/rasmusbendtsendk//static/images:/app/static/images + - /docker_apps/rasmusbendtsendk//static/video:/app/static/video