Compare commits

..

6 Commits

Author SHA1 Message Date
Michele Rossi
631df1c125 Add wget to docker image for healthcheck
All checks were successful
default / build-and-push (push) Successful in 16s
2026-01-10 22:41:41 +01:00
Michele Rossi
fb6bfa9273 Fix docker file
All checks were successful
default / build-and-push (push) Successful in 18s
2026-01-10 22:14:16 +01:00
Michele Rossi
096982162a Fix default workflow
Some checks failed
default / build-and-push (push) Failing after 8s
2026-01-10 22:11:06 +01:00
Michele Rossi
b31d1f7cbb Fix runner label
Some checks failed
default / build-and-push (push) Failing after 1m11s
2026-01-10 21:46:34 +01:00
Michele Rossi
2fb26d749c Fix runner label
Some checks failed
default / build-and-push (push) Has been cancelled
2026-01-10 21:23:57 +01:00
Michele Rossi
b7fe44ac7c Add gitea workflow
Some checks failed
default / build-and-push (push) Has been cancelled
2026-01-10 17:16:11 +01:00
2 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
name: default
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: my-runner
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ github.actor }}
password: ${{ secrets.AUTH_TOKEN }}
- name: Build Docker Image
run: |
docker build -t ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest .
- name: Push Docker Image
run: |
docker push ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest

View File

@@ -1,14 +1,18 @@
FROM nginx:latest
# Install wget for healthchecks
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
# Remove the default Nginx configuration file
RUN rm /etc/nginx/conf.d/default.conf
# Copy our custom configuration
COPY nginx.conf /etc/nginx/conf.d/jmpgames.conf
# Create the directory and copy website files
# Ensure the folder structure matches your 'root' directive in nginx.conf
WORKDIR /var/www/jmpgames.it
COPY..
COPY . .
# Fix permissions so Nginx can read the files
RUN chown -R nginx:nginx /var/www/jmpgames.it && \