Skip to content

Commit

Permalink
Lunch updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 7, 2023
1 parent 81127ce commit 05ecb4f
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 57 deletions.
2 changes: 1 addition & 1 deletion hands-on/2023-11-30/120_templates/exercise/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ <h2 id="task-3-loading-templates-from-another-project">Task 3: Loading templates
<span class="normal"><a href="#__codelineno-7-66">66</a></span>
<span class="normal"><a href="#__codelineno-7-67">67</a></span>
<span class="normal"><a href="#__codelineno-7-68">68</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-7-1"><a id="__codelineno-7-1" name="__codelineno-7-1"></a><span class="hll"><span class="nt">include</span><span class="p">:</span>
</span></span><span id="__span-7-2"><a id="__codelineno-7-2" name="__codelineno-7-2"></a><span class="hll"><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">project</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">seat/template-go</span>
</span></span><span id="__span-7-2"><a id="__codelineno-7-2" name="__codelineno-7-2"></a><span class="hll"><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">project</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">seat1/template-go</span>
</span></span><span id="__span-7-3"><a id="__codelineno-7-3" name="__codelineno-7-3"></a><span class="hll"><span class="w"> </span><span class="nt">ref</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">main</span>
</span></span><span id="__span-7-4"><a id="__codelineno-7-4" name="__codelineno-7-4"></a><span class="hll"><span class="w"> </span><span class="nt">file</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">go.yaml</span>
</span></span><span id="__span-7-5"><a id="__codelineno-7-5" name="__codelineno-7-5"></a>
Expand Down
68 changes: 36 additions & 32 deletions hands-on/2023-11-30/140_merge_requests/exercise/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hands-on/2023-11-30/search/search_index.json

Large diffs are not rendered by default.

Binary file modified hands-on/2023-11-30/sitemap.xml.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions slides/2023-11-30/160_gitlab_ci/010_jobs_and_stages/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ job_name:
whoami
```

Use this for commands with URLs or the colon will break parsing

Shell here documents:

```yaml
Expand Down
4 changes: 3 additions & 1 deletion slides/2023-11-30/160_gitlab_ci/110_triggers/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ job_name2:
file: <relative-path-to-file>
```

File must match `/\.ya?ml$/`

---

## Hands-On
Expand Down Expand Up @@ -153,7 +155,7 @@ Wait for successul downstream pipeline using `strategy` [](https://docs.gitlab.c
```yaml
job_name:
trigger:
include: child.ymal
include: child.yaml
strategy: depend
```

Expand Down
21 changes: 0 additions & 21 deletions slides/2023-11-30/160_gitlab_ci/130_rules/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,3 @@ Template to disable job:
## Hands-On
See chapter [Rules](/hands-on/2023-11-30/130_rules/exercise/)
---
## Pro tip: Rule templates
Pipelines often have many jobs
Rules will be repeated multiple times
Combine rules with templates to prevent repetition
```yaml
.rule-only-web:
rules:
- if: $CI_PIPELINE_SOURCE == 'web'

job_name:
extends:
- .rule-only-web
#...
```
39 changes: 39 additions & 0 deletions slides/2023-11-30/160_gitlab_ci/140_merge_requests/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,45 @@ Do not have access to protected variables

---

## Rule templates

Pipelines often have many jobs

Rules will be repeated multiple times

Combine rules with templates to prevent repetition

```yaml
.rule-only-web:
rules:
- if: $CI_PIPELINE_SOURCE == 'web'

job_name:
extends:
- .rule-only-web
#...
```

---

## Hands-On

See chapter [Merge requests](/hands-on/2023-11-30/140_merge_requests/exercise/)

---

## Integration with SonarQube

### Merge request decoration

Write scan results into merge request [](https://docs.sonarsource.com/sonarqube/latest/devops-platform-integration/gitlab-integration/)

Requires Developer Edition

### Quality Gates

Wait for quality gates:

```bash
sonar-scanner -Dsonar.qualitygate.wait=true
```
24 changes: 24 additions & 0 deletions slides/2023-11-30/160_gitlab_ci/260_runners/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,27 @@ Shared across a group or a project
Accessible to members with **Owner** role

Shared runners can be disabled

---

## Runner tags

Runners can have tags

Tags specify features based on...

- Networking locations
- Hardware
- Runner configuration

### Selecting runners in pipelines

Each can use a different runner:

```yaml
job_name:
tags:
- foo
```
All features work across different runners
2 changes: 1 addition & 1 deletion slides/2023-11-30/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

### Advanced

[Environments](#/gitlab_environments) - [Trigger](#/gitlab_triggers) - [Child pipelines](#/gitlab_child_pipelines) - [Templates](#/gitlab_templates) - [Rules](#/gitlab_rules) - [Merge requests](#/gitlab_merge_requests) - [Matrix Jobs](#/gitlab_matrix_jobs)
[Environments](#/gitlab_environments) - [Trigger](#/gitlab_triggers) - [Child pipelines](#/gitlab_triggers) - [Templates](#/gitlab_templates) - [Rules](#/gitlab_rules) - [Merge requests](#/gitlab_merge_requests) - [Matrix Jobs](#/gitlab_matrix_jobs)

### Expert

Expand Down

0 comments on commit 05ecb4f

Please sign in to comment.