Skip to content

Commit

Permalink
adds dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bulbil committed Oct 22, 2023
1 parent f663a9c commit f723f4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:17-alpine
RUN npm install -g @11ty/eleventy --unsafe-perm
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
RUN echo "Running \`npm install\`"
RUN npm install
RUN echo "Running eleventy"
RUN npm run eleventy
11 changes: 3 additions & 8 deletions .github/workflows/eleventy-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ on:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build Eleventy site
uses: actions/setup-node@v3
with:
node-version: 18
- run: |
npm install \
npm run eleventy
runs:
using: docker
image: Dockerfile
- name: Rsync Deployments Action
# You may pin to the exact commit or the version.
# uses: Burnett01/rsync-deployments@2651e3eecb4ea772cbe952695d04952e92027b4f
Expand Down

0 comments on commit f723f4d

Please sign in to comment.