Files
yml/templates/gitlab.tpl.yml
2024-05-10 07:49:41 -05:00

36 lines
772 B
YAML

.gitlab-move-files:
image: registry.internal.durp.info/debian:latest
script:
- ./scripts/gitlab/movefiles.sh
artifacts:
expire_in: 1 hour
paths:
- $CI_PROJECT_DIR/output
.gitlab-deploy:
stage: deploy
image: mcr.microsoft.com/powershell:latest
script:
- ./scripts/gitlab/update-chart.sh
environment:
name: production
url: https://api.durp.info/goapi
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
when: manual
needs:
- job: version
artifacts: true
.generate-config:
stage: build
needs:
- job: version
artifacts: true
script:
- ./scripts/gitlab/create-environment.sh
artifacts:
expire_in: never
paths:
- generated-config.yml