Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53f3488

Browse files
committed
ci(build): allow cache to be bypassed
Every week build without cache and allow a manual run as well
1 parentc707772 commit53f3488

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

‎.github/workflows/build.yml‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
name:Build
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
-main
7-
schedule:# Run everyday
8-
-cron:"0 0 * * *"
9-
pull_request:
8+
schedule:
9+
# every weekday
10+
-cron:'0 0 * * 1-5'
11+
# every sunday (no-cache)
12+
-cron:'0 0 * * 0'
13+
workflow_dispatch:
14+
inputs:
15+
no-cache:
16+
description:'Skip Docker cache'
17+
type:boolean
18+
default:false
1019

1120
jobs:
1221
build:
@@ -31,8 +40,10 @@ jobs:
3140
-uses:docker/build-push-action@v3
3241
with:
3342
context:${{ matrix.elixir }}
43+
pull:${{ github.event_name != 'pull_request' }}
3444
push:${{ github.event_name != 'pull_request' }}
3545
tags:articulate/articulate-elixir:${{ matrix.elixir }}
3646
platforms:linux/amd64,linux/arm64/v8
3747
cache-from:type=registry,ref=articulate/articulate-elixir:${{ matrix.elixir }}
3848
cache-to:type=inline
49+
no-cache:${{ github.event.schedule == '0 0 * * 0' || (github.event_name == 'workflow_dispatch' && inputs.no-cache) }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp