-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
24 lines (22 loc) · 1.33 KB
/
.gitlab-ci.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
build:
stage: build
image: digitalautonomy/wahay:0.7-build-rpm
before_script:
- dnf install -y golang-github-sirupsen-logrus-devel golang-github-stretchr-testify-devel golang-x-text-devel golang-github-protobuf-devel golang-github-gorilla-websocket-devel golang-x-crypto-devel golang-x-net-devel golang-github-atotto-clipboard-devel golang-github-kardianos-osext-devel golang-gopkg-check-1-devel cairo-devel cairo-gobject-devel pango-devel gdk-pixbuf2-devel gtk3-devel
- "eval $(ssh-agent -s)"
- 'ssh-add <(echo "$FEDORA_PACKAGING_PRIVATE_KEY")'
- mkdir -p ~/.ssh; chmod 700 ~/.ssh
- 'echo -e "[fedora.autonomia.digital]:4243,[185.108.78.22]:4243 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFE8IPu1LfB0ePyhgBFTyzXRNBZUiYa1ZaSnkFb746r3MgZQlfMhfxdMtrY3bKoiQ4i+HEUTCUN4BJ5n2PMdGz4=" > ~/.ssh/known_hosts'
- chmod 644 ~/.ssh/known_hosts
- 'scp -r -P4243 fedora-repo@fedora.autonomia.digital:packages/upload/f38/golang*devel*.rpm .'
- rpm -Uvh golang*devel*.rpm
parallel:
matrix:
- fedora_release: ["f30", "f31", "f32", "f33", "f34", "f35", "f36", "f37", "f38"]
script:
- git clone https://github.com/digitalautonomy/wahay.git wahay-0.1
- cd wahay-0.1
- git checkout tags/v0.1
- cd ..
- tar zcf wahay-0.1.tar.gz wahay-0.1
- ./build_all.sh $fedora_release