| 1 | # Tijdelijke GitLab-pipeline, zolang deze repository nog op gitlab.com staat. |
| 2 | # BlueGit zelf leest blue-ci-cd.yml, niet dit bestand. |
| 3 | |
| 4 | stages: [test, release] |
| 5 | |
| 6 | go-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. |
| 15 | publish: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 |