Skip to content

Instantly share code, notes, and snippets.

@geodis
Last active May 19, 2025 09:29
Show Gist options
  • Select an option

  • Save geodis/90356ddefa8d56868bb15096523a7bca to your computer and use it in GitHub Desktop.

Select an option

Save geodis/90356ddefa8d56868bb15096523a7bca to your computer and use it in GitHub Desktop.
Gitlab
.debug_changes: &debug_changes
  - force-debug.txt

.debug_script: &debug_script
  script:
    - echo "DEBUG MODE"
    - printenv
    - hostname

build debug:
  stage: build
  tags:
    - docker_aws
    - staging
  extends:
    - .before_script_custom
  environment:
    name: ${ENVIRONMENT}
  rules:
    - if: '$CI_PIPELINE_SOURCE == "schedule"'
      when: never
    - if: '$CI_COMMIT_BRANCH == "cicd_refactor"'
      variables:
        ENVIRONMENT: staging
      changes: *debug_changes
      when: on_success      
  <<: *debug_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment