This commit is contained in:
2024-05-27 08:41:36 -05:00
parent 41ff4a47e8
commit 5755e35ac1

View File

@@ -3,88 +3,71 @@ stages:
- staging - staging
- production - production
include:
- project: "developerdurp/yml"
ref: "main"
file:
- "jobs/version.yml"
- "jobs/gitlab.yml"
variables: variables:
VAULT_SERVER_URL: https://vault.internal.durp.info PARENT_PIPELINE_ID: $CI_PIPELINE_ID
VAULT_AUTH_ROLE: gitlab GO_VERSION: "1.22"
VAULT_AUTH_PATH: jwt GOLANGCI_LINT_VERISON: "v1.58.0"
UPLOAD_PACKAGE: "false"
PROJECT_NAME: $CI_PROJECT_NAME
test: version:
stage: deploy extends: .version
image: registry.internal.durp.info/debian:latest stage:
script: .pre
- echo $test
- echo $VAULT_ID_TOKEN
id_tokens:
VAULT_ID_TOKEN:
aud: https://vault.internal.durp.info
secrets:
test:
vault: gitlab-ci/test@secrets
#build:
# stage: deploy
# allow_failure: false
# trigger:
# include: # include:
# - project: 'developerdurp/yml' # - project: 'developerdurp/yml'
# ref: 'main' # ref: 'main'
# file: # file:
# - 'jobs/version.yml' # - 'pipelines/go-build.yml'
# - 'jobs/gitlab.yml' # strategy: depend
# # rules:
#variables: # - exists:
# PARENT_PIPELINE_ID: $CI_PIPELINE_ID # - "go.mod"
# GO_VERSION: "1.22"
# GOLANGCI_LINT_VERISON: "v1.58.0" generate-config-staging:
# UPLOAD_PACKAGE: "false" extends: .generate-config
# PROJECT_NAME: $CI_PROJECT_NAME stage: staging
# variables:
#version: ENVIRONMENT: "staging"
# extends: .version
# stage: .pre child-pipeline-staging:
# stage: staging
# #build: needs:
# # stage: deploy - job: generate-config-staging
# # allow_failure: false trigger:
# # trigger: include:
# # include: - artifact: generated-config.yml
# # - project: 'developerdurp/yml' job: generate-config-staging
# # ref: 'main'
# # file: generate-config-production:
# # - 'pipelines/go-build.yml' extends: .generate-config
# # strategy: depend stage: production
# # rules: when: manual
# # - exists: needs:
# # - "go.mod" - job: version
# artifacts: true
#generate-config-staging: - job: generate-config-staging
# extends: .generate-config - job: child-pipeline-staging
# stage: staging variables:
# variables: ENVIRONMENT: "production"
# ENVIRONMENT: "staging"
# child-pipeline-production:
#child-pipeline-staging: stage: production
# stage: staging needs:
# needs: - job: generate-config-production
# - job: generate-config-staging trigger:
# trigger: include:
# include: - artifact: generated-config.yml
# - artifact: generated-config.yml job: generate-config-production
# job: generate-config-staging
#
#generate-config-production:
# extends: .generate-config
# stage: production
# when: manual
# needs:
# - job: version
# artifacts: true
# - job: generate-config-staging
# - job: child-pipeline-staging
# variables:
# ENVIRONMENT: "production"
#
#child-pipeline-production:
# stage: production
# needs:
# - job: generate-config-production
# trigger:
# include:
# - artifact: generated-config.yml
# job: generate-config-production