BlueGit

timfa bluegit

Files

bluegit / .gitlab-ci.yml

.gitlab-ci.yml

feat: publiceer bluegit naar de AUR bij een push naar master
timfa project_87923614_bot_3aff574f6f98414b945a8799374f9092 · pushed by timfa · 3 weeks ago
a47e8c3a History
.gitlab-ci.yml 862 B Download Raw
1# Tijdelijke GitLab-pipeline, zolang deze repository nog op gitlab.com staat.
2# BlueGit zelf leest blue-ci-cd.yml, niet dit bestand.
3
4stages: [test, release]
5
6go-test:
7 stage: test
8 image: golang:1.22
9 script:
10 - go test ./...
11
12# Zelfde geheimnamen als Posprint. Tim zet ze zelf.
13# AUR_SSH_PRIVATE_KEY (File, ruwe sleutel) of AUR_SSH_PRIVATE_KEY_B64
14# (Variable, één regel base64), plus AUR_GIT_AUTHOR_NAME en AUR_GIT_AUTHOR_EMAIL.
15publish:aur:
16 stage: release
17 image: archlinux/archlinux:base-devel
18 rules:
19 - if: $CI_COMMIT_BRANCH == "master"
20 allow_failure: true
21 before_script:
22 - pacman -Syu --noconfirm
23 - pacman -S --noconfirm --needed git openssh curl coreutils shadow util-linux
24 - chmod +x scripts/aur-ssh-setup.sh
25 - ./scripts/aur-ssh-setup.sh
26 script:
27 - chmod +x scripts/publish-aur.sh
28 - ./scripts/publish-aur.sh