Compare commits
6 Commits
bd4e1322be
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
631df1c125 | ||
|
|
fb6bfa9273 | ||
|
|
096982162a | ||
|
|
b31d1f7cbb | ||
|
|
2fb26d749c | ||
|
|
b7fe44ac7c |
28
.gitea/workflows/default.yaml
Normal file
28
.gitea/workflows/default.yaml
Normal 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
|
||||
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user