diff --git a/.github/workflows/Dockerfile b/.github/workflows/Dockerfile new file mode 100644 index 0000000..1040d9a --- /dev/null +++ b/.github/workflows/Dockerfile @@ -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 \ No newline at end of file diff --git a/.github/workflows/eleventy-deploy.yml b/.github/workflows/eleventy-deploy.yml index 7ed5274..e9e7b39 100644 --- a/.github/workflows/eleventy-deploy.yml +++ b/.github/workflows/eleventy-deploy.yml @@ -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