-
Notifications
You must be signed in to change notification settings - Fork 532
/
appveyor.yml
38 lines (30 loc) · 1.29 KB
/
appveyor.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
version: 1.0.{build}
image: Visual Studio 2019
environment:
DOCKER_ORG:
secure: zzVvB/twdpuNAko2Sjpu7g==
DOCKER_USER:
secure: GfPcN/48qsxPw+Tp011d+A==
DOCKER_PASS:
secure: zYHL3LCh2EskrlIVjrOqKmOwpbcGNtDCw2fHreu+xTs=
install:
- ps: docker version
build_script:
- ps: docker build --pull -t openresty:windows -f windows/Dockerfile .
test_script:
- cmd: docker run openresty:windows nginx -vt
deploy_script:
- ps: >-
echo "${env:DOCKER_PASS}" | docker login -u="${env:DOCKER_USER}" --password-stdin
if (${env:APPVEYOR_REPO_BRANCH} -eq "master") {
docker tag ${env:DOCKER_ORG}:windows ${env:DOCKER_ORG}/openresty:windows
docker push ${env:DOCKER_ORG}/openresty:windows
docker tag ${env:DOCKER_ORG}:windows ${env:DOCKER_ORG}/openresty:windows-2019
docker push ${env:DOCKER_ORG}/openresty:windows-2019
}
if (${env:APPVEYOR_REPO_TAG_NAME}) {
docker tag ${env:DOCKER_ORG}:windows ${env:DOCKER_ORG}/openresty:${env:APPVEYOR_REPO_TAG_NAME}-windows
docker push ${env:DOCKER_ORG}/openresty:${env:APPVEYOR_REPO_TAG_NAME}-windows
docker tag ${env:DOCKER_ORG}:windows ${env:DOCKER_ORG}/openresty:${env:APPVEYOR_REPO_TAG_NAME}-windows-2019
docker push ${env:DOCKER_ORG}/openresty:${env:APPVEYOR_REPO_TAG_NAME}-windows-2019
}