Skip to content

Commit

Permalink
build builder weekly and use it for tests (KalicoCrew#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz authored Aug 11, 2023
1 parent 97c6eaa commit a175005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci-approval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup cache
uses: actions/cache@v2
with:
path: ci_cache
key: ${{ runner.os }}-build-${{ hashFiles('scripts/ci-install.sh') }}

- uses: dorny/paths-filter@v2
id: changes
with:
Expand All @@ -31,14 +25,9 @@ jobs:
run: |
echo "::set-output name=run_test::true"
- name: Prepare tests
if: steps.should_test.outputs.run_test == 'true'
run: docker build -t klipper-build -f scripts/Dockerfile-build .

- name: Test
if: steps.should_test.outputs.run_test == 'true'
run: docker run klipper-build "./scripts/ci-build.sh" 2>&1
run: docker run ${{ secrets.DOCKERHUB_USERNAME }}/klipper-build:latest "./scripts/ci-build.sh" 2>&1

- name: Upload micro-controller data dictionaries
if: steps.should_test.outputs.run_test == 'true'
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-builder.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Klipper Container Build and Push

on: workflow_dispatch
on:
schedule:
- cron: "0 0 * * 0" # at 00.00 on Sunday

jobs:
login:
Expand Down

0 comments on commit a175005

Please sign in to comment.