mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-09-28 12:16:54 -05:00
Remove the Docker container build and deployment
The updaters and posters are moving to Cloudflare Workers, and the container will not receive the new code, so the image build workflow, Dockerfile, Compose files, and Watchtower configuration go. The container currently in production keeps running its last image until it is retired. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
node_modules
|
||||
dist
|
||||
storage
|
||||
55
.github/workflows/deploy.yml
vendored
55
.github/workflows/deploy.yml
vendored
@@ -1,55 +0,0 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
deploy-backend:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
attestations: write
|
||||
id-token: write
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/app/Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Generate artifact attestation
|
||||
uses: actions/attest-build-provenance@v1
|
||||
with:
|
||||
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
subject-digest: ${{ steps.push.outputs.digest }}
|
||||
push-to-registry: true
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,5 @@
|
||||
node_modules
|
||||
.env
|
||||
docker-compose.override.yml
|
||||
/dist
|
||||
logs
|
||||
test-screenshot-*
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
# Example Docker Compose override file for local development
|
||||
|
||||
services:
|
||||
app:
|
||||
platform: linux/amd64 # Needed for Apple Silicon
|
||||
build:
|
||||
dockerfile: docker/app/Dockerfile
|
||||
volumes:
|
||||
- .:/app
|
||||
|
||||
browserless:
|
||||
platform: linux/arm64 # Needed for Apple Silicon
|
||||
ports:
|
||||
- 3000:3000
|
||||
@@ -1,17 +0,0 @@
|
||||
# Example Docker Compose override file for production
|
||||
|
||||
services:
|
||||
app:
|
||||
# Use a different tag if needed
|
||||
# image: ghcr.io/misenhower/splatoon2.ink:develop
|
||||
labels: [ "com.centurylinklabs.watchtower.scope=splatoon2ink" ]
|
||||
|
||||
browserless:
|
||||
labels: [ "com.centurylinklabs.watchtower.scope=splatoon2ink" ]
|
||||
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --interval 30 --scope splatoon2ink
|
||||
labels: [ "com.centurylinklabs.watchtower.scope=splatoon2ink" ]
|
||||
@@ -1,19 +0,0 @@
|
||||
services:
|
||||
app:
|
||||
image: ghcr.io/misenhower/splatoon2.ink
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
USE_BROWSERLESS: true
|
||||
BROWSERLESS_ENDPOINT: ws://browserless:3000
|
||||
SCREENSHOT_HOST: app
|
||||
depends_on:
|
||||
- browserless
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
browserless:
|
||||
image: ghcr.io/browserless/chromium
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
CONCURRENT: ${BROWSERLESS_CONCURRENT:-1}
|
||||
@@ -1,15 +0,0 @@
|
||||
FROM node:22
|
||||
|
||||
# App setup
|
||||
WORKDIR /app
|
||||
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
||||
|
||||
# Install NPM dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
# Copy app files and build
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
Reference in New Issue
Block a user