Skip to content

Commit

Permalink
use bun for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoho committed May 7, 2024
1 parent 31bac70 commit 0566c55
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 11,017 deletions.
38 changes: 0 additions & 38 deletions .devcontainer/Dockerfile

This file was deleted.

71 changes: 24 additions & 47 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,28 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Hugo (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update VARIANT to pick hugo variant.
// Example variants: hugo, hugo_extended
// Rebuild the container if it already exists to update.
"VARIANT": "hugo_extended",
// Update VERSION to pick a specific hugo version.
// Example versions: latest, 0.73.0, 0,71.1
// Rebuild the container if it already exists to update.
"VERSION": "0.117.0",
// Update NODE_VERSION to pick the Node.js version: 12, 14
"NODE_VERSION": "18"
}
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"html.format.templating": true
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"bungcip.better-toml",
"davidanson.vscode-markdownlint"
]
}
"name": "Ubuntu",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:jammy",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/hugo:1": {
"extended": true
},
"ghcr.io/devcontainers/features/go:1": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
1313
],

"forwardPorts": [1313],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",

// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"features": {
"ghcr.io/devcontainers/features/go:1": {},
"ghcr.io/devcontainers/features/hugo:1": {},
"ghcr.io/devcontainers/features/node:1": {}
}
}
"postCreateCommand": "curl -fsSL https://bun.sh/install | bash"

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

10 changes: 6 additions & 4 deletions .github/workflows/deploy-hugo-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "true"

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.117.0"
extended: true

- uses: actions/checkout@v4
with:
submodules: "true"


- run: cd hugo && hugo --minify

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
Binary file added bun.lockb
Binary file not shown.
7 changes: 1 addition & 6 deletions hugo/content/contact-us.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
---
title: Contact Us
description: Ways to contact the Kingston NY Church of Christ

---

We welcome any comments or questions you may have.

You may also email us for a FREE Bible Correspondence Course, with a FREE Bible, if you need one. The course is simple, with straight forward lessons, and Scripturally-based. The course is done through the mail, and there is no obligation. Any information you give us will be kept confidential.

Thanks for visiting our website and we look forward to hearing from you, or maybe even seeing you, soon!
We welcome any comments or questions you may have. Thanks for visiting our website and we look forward to hearing from you, or maybe even seeing you, soon!

{{< form >}}
2 changes: 1 addition & 1 deletion hugo/layouts/shortcodes/form.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<iframe
src="https://docs.google.com/forms/d/e/1FAIpQLScOY00v3r5y0UcsQ2N6oEnZeMgIsT2L82XxBfffOZj5g3WbuQ/viewform?embedded=true"
width="100%"
height="891"
height="950"
frameborder="0"
marginheight="0"
marginwidth="0">
Expand Down
Loading

0 comments on commit 0566c55

Please sign in to comment.