-
Notifications
You must be signed in to change notification settings - Fork 0
144 lines (144 loc) · 4.57 KB
/
test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"jobs" : {
"deploy_github_nightly" : {
"if" : "${{ github.ref == 'refs/heads/nightly' }}",
"needs" : [
"test"
],
"runs-on" : "ubuntu-latest",
"steps" : [
{
"uses" : "actions/checkout@v2",
"with" : {
"fetch-depth" : 0,
"ref" : "master",
"ssh-key" : "${{ secrets.GH_GIT_KEY }}"
}
},
{
"run" : "git config --global user.name \u0022GitHub Actions\u0022"
},
{
"run" : "git config --global user.email \u0022temp@github.test\u0022"
},
{
"run" : "git fetch --unshallow origin master || git fetch origin master"
},
{
"run" : "git checkout master || git checkout -b master origin/master"
},
{
"run" : "git merge -m \u0022auto-merge $GITHUB_REF ($GITHUB_SHA) into master\u0022 $GITHUB_SHA"
},
{
"run" : "git push origin master"
},
{
"env" : {
"BWALLER_URL" : "${{ secrets.BWALLER_URL }}"
},
"run" : "curl -sSf $BWALLER_URL | BWALL_GROUP=merger.${GITHUB_REF/refs\u005C/heads\u005C//} BWALL_NAME=${GITHUB_REPOSITORY} bash"
}
]
},
"deploy_github_staging" : {
"if" : "${{ github.ref == 'refs/heads/staging' }}",
"needs" : [
"test"
],
"runs-on" : "ubuntu-latest",
"steps" : [
{
"uses" : "actions/checkout@v2",
"with" : {
"fetch-depth" : 0,
"ref" : "master",
"ssh-key" : "${{ secrets.GH_GIT_KEY }}"
}
},
{
"run" : "git config --global user.name \u0022GitHub Actions\u0022"
},
{
"run" : "git config --global user.email \u0022temp@github.test\u0022"
},
{
"run" : "git fetch --unshallow origin master || git fetch origin master"
},
{
"run" : "git checkout master || git checkout -b master origin/master"
},
{
"run" : "git merge -m \u0022auto-merge $GITHUB_REF ($GITHUB_SHA) into master\u0022 $GITHUB_SHA"
},
{
"run" : "git push origin master"
},
{
"env" : {
"BWALLER_URL" : "${{ secrets.BWALLER_URL }}"
},
"run" : "curl -sSf $BWALLER_URL | BWALL_GROUP=merger.${GITHUB_REF/refs\u005C/heads\u005C//} BWALL_NAME=${GITHUB_REPOSITORY} bash"
}
]
},
"test" : {
"env" : {
"CIRCLE_ARTIFACTS" : "/tmp/circle-artifacts/test"
},
"runs-on" : "ubuntu-latest",
"steps" : [
{
"uses" : "actions/checkout@v2",
"with" : {
"ssh-key" : "${{ secrets.GH_GIT_KEY }}"
}
},
{
"run" : "mkdir -p $CIRCLE_ARTIFACTS"
},
{
"run" : "docker run -i quay.io/wakaba/droneci-step-base true"
},
{
"env" : {
"DOCKER_PASS" : "${{ secrets.DOCKER_PASS }}",
"DOCKER_USER" : "${{ secrets.DOCKER_USER }}"
},
"if" : "${{ github.ref == 'refs/heads/master' }}",
"run" : "docker login -u $DOCKER_USER -p $DOCKER_PASS quay\u005C.io"
},
{
"if" : "${{ github.ref == 'refs/heads/master' }}",
"run" : "docker push quay\u005C.io\u005C/wakaba\u005C/droneci\u005C-step\u005C-base"
},
{
"env" : {
"BWALLER_URL" : "${{ secrets.BWALLER_URL }}"
},
"if" : "${{ github.ref == 'refs/heads/master' }}",
"run" : "curl -sSf $BWALLER_URL | BWALL_GROUP=docker BWALL_NAME=quay.io/wakaba/droneci-step-base bash"
},
{
"run" : "true"
},
{
"uses" : "actions/upload-artifact@v3",
"with" : {
"path" : "/tmp/circle-artifacts/test"
}
}
]
}
},
"name" : "test",
"on" : {
"push" : {
},
"schedule" : [
{
"cron" : "56 21 * * *"
}
]
}
}