initial
All checks were successful
Build and Deploy koneko.rocks / build-and-deploy (push) Successful in 9s

This commit is contained in:
2025-08-02 20:53:18 +02:00
commit 56b2574e5a
6 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,38 @@
name: Build and Deploy koneko.rocks
on:
push:
branches:
- main
jobs:
build-and-deploy:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Verify Docker access
run: |
echo "Checking Docker access from container..."
docker version
docker compose version
# use this as template if you need to build
#- name: Build project
# run: |
# echo "Running build..."
# ./build.sh
- name: Store artifact
run: |
echo "Storing artifact..."
mkdir -p /opt/artifacts/koneko-static-site
cp -r . /opt/artifacts/koneko-static-site/
- name: Deploy with Docker Compose
run: |
echo "Deploying with docker-compose..."
cd /opt/artifacts/koneko-static-site
docker compose down
docker compose up -d --build