From 571079bed8a8829584a8bf516972bf933cde6504 Mon Sep 17 00:00:00 2001 From: maxtf141 Date: Wed, 19 Mar 2025 12:24:17 +0200 Subject: [PATCH] Add Github action for PR's --- .github/workflows/action.yml | 2 +- .github/workflows/actionpr.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/actionpr.yml diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 633d167..8984756 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -24,7 +24,7 @@ concurrency: ${{ github.ref }} jobs: build: name: Build Puppeteer - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/actionpr.yml b/.github/workflows/actionpr.yml new file mode 100644 index 0000000..3b934ba --- /dev/null +++ b/.github/workflows/actionpr.yml @@ -0,0 +1,32 @@ +name: Build Pull Request +on: + # Trigger the workflow on all pull request, + pull_request: + branches: + - master + workflow_dispatch: + # Also trigger on page_build, as well as release created events + page_build: + release: + types: # This configuration does not affect the page_build event above + - created + +jobs: + build: + name: Build PR + runs-on: ubuntu-24.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + id: checkout + with: + lfs: true + - name: build-push + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DEPLOY_DOCKER_USERNAME }} + password: ${{ secrets.DEPLOY_DOCKER_PASSWORD }} + repository: imqs/htmlrender + tag_with_ref: true + build_args: SSH_KEY=${{ secrets.DEPLOYBOT_SSH_KEY }} + cache_froms: node:20