69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
image: docker:latest
|
|
|
|
services:
|
|
- docker:dind
|
|
|
|
stages:
|
|
- report
|
|
- build
|
|
- test
|
|
- publish
|
|
|
|
before_script:
|
|
- apk add bash git
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- /bin/bash .utilities/check.sh
|
|
- /bin/bash -e .utilities/build.sh
|
|
only:
|
|
- tags
|
|
artifacts:
|
|
paths:
|
|
- "$CI_PROJECT_NAME.tar"
|
|
|
|
test:
|
|
stage: test
|
|
script: /bin/bash -e .utilities/test.sh
|
|
only:
|
|
- tags
|
|
artifacts:
|
|
paths:
|
|
- "$CI_PROJECT_NAME.tar"
|
|
|
|
publish:
|
|
stage: publish
|
|
script: /bin/bash -e .utilities/publish.sh
|
|
only:
|
|
- tags
|
|
artifacts:
|
|
paths:
|
|
- "$CI_PROJECT_NAME.tar"
|
|
|
|
#update_docker_hub_full_description:
|
|
# stage: publish
|
|
# script: /bin/bash -e .utilities/update-docker-hub-full-description.sh
|
|
# only:
|
|
# - master
|
|
|
|
description_templater:
|
|
image: python:3.8-alpine
|
|
stage: build
|
|
script: sh -e .utilities/templates/templater.sh
|
|
only:
|
|
- tags
|
|
artifacts:
|
|
paths:
|
|
- "*.description"
|
|
|
|
bot:package_update_notification:
|
|
stage: report
|
|
script: bash -e .utilities/package_update_notifier.sh
|
|
only:
|
|
- schedules
|
|
# see https://docs.gitlab.com/ce/ci/yaml/README.html#onlyexcept-advanced for feature updates
|
|
# refs:
|
|
# - schedules
|
|
# variables:
|
|
# - $SCHEDULE_ID == $PACKAGE_UPDATE_NOTIFICATION_SCHEDULE_ID |