forked from OneIdentity/safeguard-ps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor-linux.yml
63 lines (42 loc) · 1.72 KB
/
appveyor-linux.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
version: 6.8.{build}
branches:
only:
- master
image: Ubuntu1804
environment:
DockerHubAccessToken:
secure: VYKd4CaBJazTyU2VNPi0fAiKMtQcpOjwEMprUL7r6HJCeGL8ODKs+8zoo5PTIgOQ
build_script:
- sh: >-
./build-docker.sh ubuntu18.04 $APPVEYOR_BUILD_VERSION
./build-docker.sh ubuntu16.04 $APPVEYOR_BUILD_VERSION
./build-docker.sh centos7 $APPVEYOR_BUILD_VERSION
./build-docker.sh alpine3.8 $APPVEYOR_BUILD_VERSION
./build-docker.sh opensuse42.3 $APPVEYOR_BUILD_VERSION
./build-docker.sh fedora28 $APPVEYOR_BUILD_VERSION
docker tag oneidentity/safeguard-ps:${APPVEYOR_BUILD_VERSION}-alpine3.8 oneidentity/safeguard-ps:latest
test: off
deploy_script:
- sh: >-
Prerelease=`pwsh -Command "([string]([bool](Import-PowerShellDataFile src/safeguard-ps.psd1).PrivateData.PSData.Prerelease)).ToLower()"`
if $Prerelease; then
echo "Not publishing docker images for pre-release"
else
docker login -u petrsnd -p $DockerHubAccessToken
docker push oneidentity/safeguard-ps:${APPVEYOR_BUILD_VERSION}-ubuntu18.04
docker push oneidentity/safeguard-ps:${APPVEYOR_BUILD_VERSION}-ubuntu16.04
docker push oneidentity/safeguard-ps:${APPVEYOR_BUILD_VERSION}-centos7
docker push oneidentity/safeguard-ps:${APPVEYOR_BUILD_VERSION}-alpine3.8
docker push oneidentity/safeguard-ps:${APPVEYOR_BUILD_VERSION}-opensuse42.3
docker push oneidentity/safeguard-ps:${APPVEYOR_BUILD_VERSION}-fedora28
docker push oneidentity/safeguard-ps:latest
docker logout
fi
notifications:
- provider: Email
to:
subject: safeguard-ps linux build is failing
on_build_success: false
on_build_failure: true
on_build_status_changed: false