forked from algorand/go-algorand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package-deploy.yaml
93 lines (78 loc) · 2.52 KB
/
package-deploy.yaml
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
agents:
- name: deb
dockerFilePath: docker/build/docker.ubuntu.Dockerfile
image: algorand/mule-linux-ubuntu
version: scripts/configure_dev-deps.sh
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
env:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
volumes:
- /var/run/docker.sock:/var/run/docker.sock
workDir: $HOME/projects/go-algorand
- name: rpm
dockerFilePath: docker/build/mule.go.centos.Dockerfile
image: algorand/mule-linux-centos
version: scripts/configure_dev-deps.sh
buildArgs:
- GOLANG_VERSION=`./scripts/get_golang_version.sh`
env:
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
volumes:
- $HOME/packages:/root/packages
- $XDG_RUNTIME_DIR/gnupg/S.gpg-agent:/root/.gnupg/S.gpg-agent
- $HOME/.gnupg/pubring.kbx:/root/.gnupg/pubring.kbx
workDir: $HOME/projects/go-algorand
tasks:
- task: docker.Make
name: deb
agent: deb
target: mule-deploy-deb
- task: docker.Make
name: rpm
agent: rpm
target: mule-deploy-rpm
- task: s3.BucketCopy
name: deb
src: s3://algorand-staging/releases/$CHANNEL/$VERSION/algorand_${CHANNEL}_${OS_TYPE}-${ARCH_TYPE}_${VERSION}.deb
dest: /projects/go-algorand/tmp/node_pkgs/$OS_TYPE/$ARCH_TYPE
- task: s3.BucketCopy
name: rpm
src: s3://algorand-staging/releases/$CHANNEL/$VERSION/algorand-${VERSION}-1.${ARCH_BIT}.rpm
dest: /projects/go-algorand/tmp/node_pkgs/$OS_TYPE/$ARCH_TYPE
- task: s3.BucketCopy
name: gnupg
src: s3://algorand-devops-misc/tools/gnupg2.2.9_centos7_amd64.tar.bz2
dest: /root
- task: s3.BucketCopy
name: deploy-dev-deb-repo
src: s3://algorand-staging/releases/$CHANNEL/$VERSION
dest: s3://algorand-dev-deb-repo/releases/$CHANNEL/$VERSION
# TODO: For now, we're hardcoding the channel until the beta
# releases are sorted out. This will then be updated.
- task: s3.BucketCopy
name: deploy-rpm-repo
src: /root/rpmrepo
dest: s3://algorand-releases/rpm/stable
jobs:
package-deploy:
tasks:
- docker.Make.deb
- docker.Make.rpm
package-deploy-setup-copy:
tasks:
- s3.BucketCopy.deploy-dev-deb-repo
package-deploy-setup-deb:
tasks:
- s3.BucketCopy.deb
package-deploy-setup-rpm:
tasks:
- s3.BucketCopy.rpm
package-deploy-setup-gnupg:
tasks:
- s3.BucketCopy.gnupg
package-deploy-rpm-repo:
tasks:
- s3.BucketCopy.deploy-rpm-repo