-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simple nginx 100% static files etup. lint CI
- Loading branch information
1 parent
9948bcb
commit b661c7f
Showing
4 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters