From d0e32abd572e16b9dd5e17a7d1cd2dc9537e8b3a Mon Sep 17 00:00:00 2001 From: Stefan Poensgen Date: Tue, 19 Dec 2023 19:41:11 +0100 Subject: [PATCH] chore: initial commit --- .github/renovate.json | 11 +++++++++++ .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ .gitignore | 1 + Dockerfile | 8 ++++++++ 4 files changed, 48 insertions(+) create mode 100644 .github/renovate.json create mode 100644 .github/workflows/build.yml create mode 100644 .gitignore create mode 100644 Dockerfile diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..9ef02ee --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "groupName": "all dependencies", + "separateMajorMinor": false, + "groupSlug": "all", + "rangeStrategy": "pin", + "schedule": ["on monday before 6am"] +} \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7bdf894 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build + +on: + workflow_dispatch: + push: + branches: + - main + +permissions: + packages: write + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Log in to registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..55b8fe6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +#syntax=docker/dockerfile:1.6 +FROM node as mjml +RUN npm install -g mjml@4.14.1 && \ + npm install -g pkg@5.8.1 && \ + pkg /usr/local/lib/node_modules/mjml/bin/mjml -t node14-alpine-x64 -o /mjml + +FROM scratch +COPY --from=mjml /mjml /mjml