mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-08-03 08:41:55 -05:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
51703ff87a | |||
4f9e811d1a | |||
0bc7a9c0dd | |||
00e7f2c9f6 | |||
e98590aa2a |
@@ -30,3 +30,10 @@ yarn-debug.log*
|
||||
cardconjurer.iml
|
||||
access.log
|
||||
error.log
|
||||
|
||||
# MF Additions
|
||||
launcher*
|
||||
.gitignore
|
||||
/.gitea
|
||||
Makefile
|
||||
README.md
|
58
.gitea/workflows/commit.yaml
Normal file
58
.gitea/workflows/commit.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
name: Build on Commit
|
||||
run-name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
paths-ignore:
|
||||
- ".gitea/workflows/**"
|
||||
schedule:
|
||||
- cron: "0 0 * * 0"
|
||||
|
||||
env:
|
||||
REGISTRY: gitea.taco.quest
|
||||
IMAGE_NAME: ${{ gitea.repository }}
|
||||
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Prepare the container
|
||||
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.AUTH_TOKEN }}
|
||||
|
||||
- name: Extract metadata for registry
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
32
.github/workflows/publish.yaml
vendored
32
.github/workflows/publish.yaml
vendored
@@ -1,32 +0,0 @@
|
||||
name: publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
aws-region: us-east-1
|
||||
role-to-assume: arn:aws:iam::353102230615:role/cardconjurer-publish
|
||||
|
||||
- name: Restore file timestamps
|
||||
uses: chetan/git-restore-mtime-action@v2
|
||||
|
||||
- name: Sync files to the S3 bucket
|
||||
run: |
|
||||
aws s3 sync --exclude '.git/*' --delete ./ s3://cardconjurer.app/
|
@@ -1,7 +1,7 @@
|
||||
# syntax = docker/dockerfile:1.2
|
||||
FROM nginx:1.21-alpine as prod
|
||||
FROM nginx:mainline-alpine
|
||||
|
||||
EXPOSE 4242
|
||||
COPY . /usr/share/nginx/html/
|
||||
COPY app.conf /etc/nginx/nginx.conf
|
||||
|
||||
EXPOSE 4242
|
||||
VOLUME [ "/usr/share/nginx/html/local_art" ]
|
@@ -17,6 +17,7 @@
|
||||
<script src='js/themes.js'></script>
|
||||
<script src='js/htmx.min.js'></script>
|
||||
<script defer src='js/main-1.js'></script>
|
||||
<title>Card Conjurer</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class='background'></div>
|
||||
|
Reference in New Issue
Block a user