|
9 | 9 | - '**/README.md' |
10 | 10 | tags: |
11 | 11 | - '*' |
| 12 | + schedule: |
| 13 | + - cron: '0 3 * * 1' |
12 | 14 | workflow_dispatch: |
13 | 15 | inputs: |
14 | 16 | push: |
@@ -70,20 +72,20 @@ jobs: |
70 | 72 | curl -fL "https://raw.githubusercontent.com/b4b4r07/httpstat/master/httpstat.sh" -o _dl/httpstat.sh |
71 | 73 |
|
72 | 74 | - name: Login to Docker Hub |
73 | | - if: inputs.push == true || github.event_name == 'push' |
| 75 | + if: inputs.push == true || github.event_name == 'push' || github.event_name == 'schedule' |
74 | 76 | uses: docker/login-action@v2 |
75 | 77 | with: |
76 | 78 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
77 | 79 | password: ${{ secrets.DOCKERHUB_TOKEN }} |
78 | 80 |
|
79 | 81 | - name: Set up QEMU |
80 | | - if: inputs.push == true || github.event_name == 'push' |
| 82 | + if: inputs.push == true || github.event_name == 'push' || github.event_name == 'schedule' |
81 | 83 | uses: docker/setup-qemu-action@v3 |
82 | 84 | with: |
83 | 85 | platforms: linux/amd64 |
84 | 86 |
|
85 | 87 | - name: Set up Docker Buildx |
86 | | - if: inputs.push == true || github.event_name == 'push' |
| 88 | + if: inputs.push == true || github.event_name == 'push' || github.event_name == 'schedule' |
87 | 89 | uses: docker/setup-buildx-action@v2 |
88 | 90 |
|
89 | 91 | - name: Build (no push) via docker build (act) |
|
93 | 95 | -t curl-edge:${IMAGE_TAG} -t curl-edge:latest . |
94 | 96 |
|
95 | 97 | - name: Build (no push) |
96 | | - if: inputs.push != true && github.event_name != 'push' && env.ACT != 'true' |
| 98 | + if: inputs.push != true && github.event_name != 'push' && github.event_name != 'schedule' && env.ACT != 'true' |
97 | 99 | uses: docker/build-push-action@v4 |
98 | 100 | with: |
99 | 101 | context: . |
@@ -123,7 +125,7 @@ jobs: |
123 | 125 | /opt/httpstat.sh -I --http3 https://cloudflare-quic.com/ || true |
124 | 126 |
|
125 | 127 | - name: Build and push |
126 | | - if: inputs.push == true || github.event_name == 'push' |
| 128 | + if: inputs.push == true || github.event_name == 'push' || github.event_name == 'schedule' |
127 | 129 | uses: docker/build-push-action@v4 |
128 | 130 | with: |
129 | 131 | context: . |
|
0 commit comments