From 2ef01e5df793e56ba8621df0fdd30cccff3fefc0 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Mon, 13 Jan 2025 23:07:09 +0100 Subject: [PATCH] Initial configuration and Dockerfile. --- .forgejo/workflows/build.yaml | 23 +++++++++++++++++++++++ Dockerfile | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 .forgejo/workflows/build.yaml create mode 100644 Dockerfile diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..b133a1d --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,23 @@ +on: + push: + tags: + - "*" +jobs: + build_docker: + runs-on: docker + container: + image: docker.zeptotech.net/dind-node + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: docker.zeptotech.net + username: ${{ vars.DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} + - uses: docker/setup-buildx-action@v3 + with: + endpoint: tcp://0.0.0.0:2375 + - uses: docker/build-push-action@v6 + with: + push: true + tags: zeptotech/zig-yarn:${{ github.ref_name }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8dc0491 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM node:alpine + +ADD https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz zig.tar.xz +RUN tar xvf zig.tar.xz && mv zig-linux-x86_64-0.13.0 /zig