From 0582a1862c13383e8c0eba53e2baaed6c4eb8710 Mon Sep 17 00:00:00 2001 From: alyssa Date: Thu, 5 Sep 2024 18:47:16 +0900 Subject: [PATCH] test --- .github/workflows/ci.yml | 19 +++++++++++++++++++ ci/Dockerfile | 4 ++++ ci/run_ci.py | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 ci/Dockerfile create mode 100644 ci/run_ci.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..b7f9ed1e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: PluralKit CI +on: + - push + - pull_request + +jobs: + build-ci-container: + runs-on: ubuntu-latest + steps: + - uses: docker/build-push-action@v2 + with: + push: false + tags: pkci + file: ci/Dockerfile + setup-ci: + runs-on: ubuntu-latest + needs: ["build-ci-container"] + container: + image: pkci diff --git a/ci/Dockerfile b/ci/Dockerfile new file mode 100644 index 00000000..09dc5d41 --- /dev/null +++ b/ci/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine:latest +RUN apk add python3 +COPY ci/run_ci.py /run_ci.py +ENTRYPOINT ["/run_ci.py"] diff --git a/ci/run_ci.py b/ci/run_ci.py new file mode 100644 index 00000000..443828d0 --- /dev/null +++ b/ci/run_ci.py @@ -0,0 +1,3 @@ +#!/usr/bin/env python3 + +print("hello from python!")