chore: fix gitlab-ci.yml

This commit is contained in:
badPointer 2023-03-01 19:08:18 +00:00
parent edbe1937e1
commit 9d7942746c

View file

@ -1,4 +1,4 @@
ncc-build: build:
image: php:8.1 image: php:8.1
before_script: before_script:
@ -16,23 +16,38 @@ ncc-build:
# install phpab # install phpab
- phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C - phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C
script:
- make tar
rules:
- if: $CI_COMMIT_BRANCH
build: release:
script: image: php:8.1
- make tar
rules:
- if: $CI_COMMIT_BRANCH
release: before_script:
script: # Install some stuff that the image doesn't come with
- make redist - apt update -yqq
- mkdir ncc_$CI_COMMIT_TAG - apt install git libpq-dev libzip-dev zip make wget gnupg -yqq
- cp -r build/src/* ncc_$CI_COMMIT_TAG/
artifacts: # Install phive
paths: - wget -O phive.phar https://phar.io/releases/phive.phar
- ncc_$CI_COMMIT_TAG/ - wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc
rules: - gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79
- if: $CI_COMMIT_TAG - gpg --verify phive.phar.asc phive.phar
- chmod +x phive.phar
- mv phive.phar /usr/local/bin/phive
# install phpab
- phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C
script:
- make redist
- mkdir ncc_$CI_COMMIT_TAG
- cp -r build/src/* ncc_$CI_COMMIT_TAG/
artifacts:
paths:
- ncc_$CI_COMMIT_TAG/
rules:
- if: $CI_COMMIT_TAG
ncc-docker-build: ncc-docker-build:
image: docker:latest image: docker:latest