From 1d9d3d3577b32d4aa89b49c5b939df60a4c2eb63 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Thu, 1 Oct 2020 11:58:51 -0700 Subject: [PATCH] Use pre-built image for action This will use a prebuilt image that's automatically built for this repository for each tag by GCB. This should speed up action execution a bit. The version in this repo will still run from the local code though, so we can still fix bugs. That configuration lives in the `action-nightly` subdirectory, and can also be referenced by external projects. --- .github/workflows/main.yml | 2 +- action-nightly/action.yml | 9 +++++++++ action.yml | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 action-nightly/action.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d140e6f..deef118 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,6 @@ jobs: uses: actions/checkout@v2 - name: Verifier action id: verifier - uses: ./ + uses: ./action-nightly with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/action-nightly/action.yml b/action-nightly/action.yml new file mode 100644 index 0000000..77cd889 --- /dev/null +++ b/action-nightly/action.yml @@ -0,0 +1,9 @@ +name: 'Verify KubeBuilder PRs' +description: 'Verify PRs for the KubeBuilder project repos & similar' +inputs: + github_token: + description: "the github_token provided by the actions runner" + required: true +runs: + using: docker + image: '../Dockerfile' diff --git a/action.yml b/action.yml index a89ca0a..063de1a 100644 --- a/action.yml +++ b/action.yml @@ -6,4 +6,7 @@ inputs: required: true runs: using: docker - image: 'Dockerfile' + # this is built using GCB by building the Dockerfile in this directory on + # every tagged release. After tagging a release, a new version should + # automatically appear. + image: 'docker://gcr.io/kubebuilder/pr-verifier:v0.1.1'