User Tools

Site Tools


инструмент_gitlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
инструмент_gitlab [2026/03/19 14:58]
val [Пример CI с использованием контейнеров]
инструмент_gitlab [2026/04/10 17:37] (current)
val [Пример CI с использованием контейнеров]
Line 110: Line 110:
 sudo -i sudo -i
  
-export BR=main; bash <(curl -s http://​gate.corp13.un/​api/​v4/​projects/​1/​repository/​files/​start.sh/​raw?​ref=$BR)+export BR=main; bash <(curl -s http://​gate.corpX.un/​api/​v4/​projects/​1/​repository/​files/​start.sh/​raw?​ref=$BR)
 </​code>​ </​code>​
  
Line 298: Line 298:
  
   * [[https://​docs.gitlab.com/​runner/​install/​linux-manually.html|Install GitLab Runner manually on GNU/Linux]]   * [[https://​docs.gitlab.com/​runner/​install/​linux-manually.html|Install GitLab Runner manually on GNU/Linux]]
-  * [[https://​val.bmstu.ru/​unix/​Git/​gitlab-runner_amd64.deb]] (16.10.0+  * [[https://​val.bmstu.ru/​unix/​Git/​gitlab-runner_amd64.deb]] (17.3.1-1
  
 <​code>​ <​code>​
Line 773: Line 773:
 #  tags: #  tags:
 #    - build #    - build
-#+
 #semgrep: #semgrep:
 #  stage: lint #  stage: lint
-#  ​script+#  ​imagesemgrep/​semgrep 
-   docker run --rm -v ${PWD}:/src -e https_proxy=http://​gate.isp.un:​3128/ ​semgrep/​semgrep semgrep --config=auto --error+ ​script:​ semgrep ​--config=auto ​--error 
 +#  variables: 
 +#    SEMGREP_SRC_DIRECTORY:​ $CI_PROJECT_DIR 
 +#    #https_proxyhttp://​gate.isp.un:​3128/​ 
 +#    #no_proxy: localhost,​127.0.0.1,​isp.un,​corpX.un
 #  except: #  except:
 #    - tags #    - tags
Line 808: Line 812:
 #trivy: #trivy:
 #  stage: scan #  stage: scan
 +#  image:
 +#    name: ghcr.io/​aquasecurity/​trivy
 +#    entrypoint: [""​] ​
 +#  variables:
 +#    #​TRIVY_USERNAME:​ "​$CI_REGISTRY_USER"​
 +#    #​TRIVY_PASSWORD:​ "​$CI_REGISTRY_PASSWORD"​
 +#    TRIVY_REGISTRY:​ "​$CI_REGISTRY"​
 +#    TRIVY_CACHE_DIR:​ "​.trivycache/"​
 #  script: #  script:
-#    - +#    - trivy image --exit-code 1 --severity HIGH --insecure $CI_REGISTRY_IMAGE:​$CI_COMMIT_SHA 
-#      docker run --rm +#  cache: 
-#      -v $(pwd)/​.trivyignore:/​work/​.trivyignore -w /work/ +#    paths: 
-#      aquasec/trivy --exit-code 1 --insecure ​image $CI_REGISTRY_IMAGE:​$CI_COMMIT_SHA+#      - "​.trivycache/"​
 #  except: #  except:
 #    - tags #    - tags
Line 835: Line 847:
 <​code>​ <​code>​
 Name: test-cgi Name: test-cgi
-Redirect URI: http://​gate.corp13.un/​cgi-bin/​test-cgi ​ !!! Если URL каталога,​ то без финального "/"​ !!!+Redirect URI: http://​gate.corpX.un/​cgi-bin/​test-cgi ​ !!! Если URL каталога,​ то без финального "/"​ !!!
 Trusted: Yes Trusted: Yes
 Confidential:​ Yes Confidential:​ Yes
инструмент_gitlab.1773921504.txt.gz · Last modified: 2026/03/19 14:58 by val