-
Notifications
You must be signed in to change notification settings - Fork 15
35 lines (29 loc) · 1017 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: auto deploy on master
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: Wait for status checks
id: check
uses: WyriHaximus/[email protected]
with:
ignoreActions: codecov/project,codecov/patch,deploy,E2E on pull request,update-snapshot,Update HTML Snapshot when comment on pr,Update E2E Snapshot when comment on pr,crawler-check,检查爬虫可用性(不准确)
checkInterval: 60
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Deploy
if: steps.check.outputs.status == 'success'
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
make tag-and-push
- name: Failed
if: steps.check.outputs.status != 'success'
run: |
echo deploy check status "${{ steps.check.outputs.status }}"
exit 1