Skip to content

Commit

Permalink
Use pre-built image for action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DirectXMan12 committed Oct 1, 2020
1 parent aec1539 commit 1d9d3d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
uses: actions/checkout@v2
- name: Verifier action
id: verifier
uses: ./
uses: ./action-nightly
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions action-nightly/action.yml
Original file line number Diff line number Diff line change
@@ -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'
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 1d9d3d3

Please sign in to comment.