2023-03-01 19:08:18 +00:00
|
|
|
build:
|
2023-03-01 19:03:14 +00:00
|
|
|
image: php:8.1
|
2023-01-29 23:27:56 +00:00
|
|
|
|
2023-03-01 19:03:14 +00:00
|
|
|
before_script:
|
|
|
|
# Install some stuff that the image doesn't come with
|
|
|
|
- apt update -yqq
|
|
|
|
- apt install git libpq-dev libzip-dev zip make wget gnupg -yqq
|
2023-01-29 23:27:56 +00:00
|
|
|
|
2023-03-01 19:03:14 +00:00
|
|
|
# Install phive
|
|
|
|
- wget -O phive.phar https://phar.io/releases/phive.phar
|
|
|
|
- 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
|
|
|
|
- chmod +x phive.phar
|
|
|
|
- mv phive.phar /usr/local/bin/phive
|
2023-01-29 23:27:56 +00:00
|
|
|
|
2023-03-01 19:03:14 +00:00
|
|
|
# install phpab
|
|
|
|
- phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C
|
2023-03-01 19:08:18 +00:00
|
|
|
script:
|
|
|
|
- make tar
|
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH
|
2023-01-29 23:27:56 +00:00
|
|
|
|
2023-03-01 19:08:18 +00:00
|
|
|
release:
|
|
|
|
image: php:8.1
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
# Install some stuff that the image doesn't come with
|
|
|
|
- apt update -yqq
|
|
|
|
- apt install git libpq-dev libzip-dev zip make wget gnupg -yqq
|
|
|
|
|
|
|
|
# Install phive
|
|
|
|
- wget -O phive.phar https://phar.io/releases/phive.phar
|
|
|
|
- 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
|
|
|
|
- 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
|
2023-03-01 19:03:14 +00:00
|
|
|
|
2023-07-23 17:10:26 +00:00
|
|
|
ncc-docker:
|
2023-03-01 19:03:14 +00:00
|
|
|
image: docker:latest
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
|
|
|
script:
|
|
|
|
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
|
|
|
|
- docker push "$CI_REGISTRY_IMAGE${tag}"
|
|
|
|
rules:
|
2023-07-11 18:36:28 -04:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_BRANCH == 'dev'
|
2023-03-01 19:03:14 +00:00
|
|
|
exists:
|
|
|
|
- Dockerfile
|
2023-07-23 17:10:26 +00:00
|
|
|
|
2023-07-23 17:44:04 +00:00
|
|
|
ncc-docker-debian:
|
2023-07-23 17:10:26 +00:00
|
|
|
image: docker:latest
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
|
|
|
script:
|
2023-07-23 17:44:04 +00:00
|
|
|
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}-debian" .
|
|
|
|
- docker push "$CI_REGISTRY_IMAGE${tag}-debian"
|
2023-07-23 17:10:26 +00:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_BRANCH == 'dev'
|
|
|
|
exists:
|
2023-07-23 17:44:04 +00:00
|
|
|
- Dockerfile.debian
|