Files
yml/templates/gitlab.tpl.yml
2024-05-09 19:07:02 -05:00

32 lines
700 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
script:
- ./scripts/gitlab/create-environment.sh
artifacts:
paths:
- generated-config.yml