ncc/.gitlab-ci.yml

33 lines
913 B
YAML
Raw Permalink Normal View History

2023-01-21 06:28:02 -05:00
image: php:8.1
before_script:
# Install some stuff that the image doesn't come with
- apt update -yqq
2023-01-21 09:54:20 -05:00
- apt install git libpq-dev libzip-dev zip make wget gnupg -yqq
2023-01-21 06:28:02 -05:00
# Install phive
- wget -O phive.phar https://phar.io/releases/phive.phar
2023-01-21 09:54:20 -05:00
- wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc
- gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79
- gpg --verify phive.phar.asc phive.phar
2023-01-21 06:28:02 -05:00
- chmod +x phive.phar
- mv phive.phar /usr/local/bin/phive
2023-01-21 06:28:02 -05:00
# install phpab
- phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C
2023-01-21 10:06:12 -05:00
build:
script:
2023-01-29 18:22:47 -05:00
- make tar
rules:
2023-01-29 18:22:47 -05:00
- if: $CI_COMMIT_BRANCH
2023-01-21 10:06:12 -05:00
release:
2023-01-21 06:28:02 -05:00
script:
2023-01-29 18:22:47 -05:00
- make tar
- mv build/build.tar.gz build/ncc_$CI_COMMIT_TAG.tar.gz
2023-01-21 06:28:02 -05:00
artifacts:
paths:
2023-01-29 18:22:47 -05:00
- build/ncc_$CI_COMMIT_TAG.tar.gz
rules:
2023-01-29 18:22:47 -05:00
- if: $CI_COMMIT_TAG