name: Deploy Image to Container
on:
push:
branches:
- "main"
env:
CONTAINER_NAME: template-starter-container
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
import Handlebars from "handlebars"; | |
import fs from "fs/promises"; | |
// Check if the templates directory exists. | |
try { | |
await fs.access("./templates"); | |
} catch (error) { | |
console.log("The templates directory does not exist."); | |
process.exit(1); | |
} |