Skip to content

Commit

Permalink
simple nginx 100% static files etup. lint CI
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Nov 3, 2024
1 parent 9948bcb commit b661c7f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
on: [push, workflow_dispatch]
jobs:
cicd:
# https://github.com/internetarchive/cicd
uses: internetarchive/cicd/.github/workflows/cicd.yml@main
secrets:
NOMAD_TOKEN: ${{ secrets.NOMAD_TOKEN }}
with:
NOMAD_VAR_HOSTNAMES: '["wordsmith.dev.archive.org","wordsmith.archive.org"]'
NOMAD_VAR_PORTS: '{ 80 = "http" }'
NOMAD_VAR_HOSTNAMES: '["wordsmith.archive.org"]'
PLATFORMS: 'linux/amd64,linux/arm64'
secrets:
NOMAD_TOKEN_EXT: ${{ secrets.NOMAD_TOKEN_EXT }}
11 changes: 11 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/internetarchive/dyno:main
steps:
- uses: actions/checkout@v4
- run: /app/lint
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM denoland/deno
FROM nginx:alpine

WORKDIR /app
WORKDIR /usr/share/nginx/html/
COPY . .

USER deno
CMD deno run --allow-net --allow-sys --allow-read --allow-env https://deno.land/std/http/file_server.ts -p5000 --no-dotfiles
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class WordsmithGame extends LitElement {
}

static fireworks() {
// deno-lint-ignore no-window
const width = window.innerWidth
const fx = new Fireworks(document.getElementById('ltrs'), {
maxRockets: 7,
Expand Down

0 comments on commit b661c7f

Please sign in to comment.