This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
automatizace:github [2023/06/02 15:07] tomas [Kroky, steps] |
automatizace:github [2023/12/21 12:20] (current) tomas [root sekce] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====Runner==== | ||
+ | |||
+ | %%VERSION=2.311.0 curl -o actions-runner.tar.gz -L " | ||
+ | tar xzf ./ | ||
+ | %%./ | ||
+ | sudo ./svc.sh install ... instalace služby\\ | ||
+ | sudo ./svc.sh start ... spuštění služby\\ | ||
+ | |||
+ | |||
==== Struktura ==== | ==== Struktura ==== | ||
definuje se v .github/ | definuje se v .github/ | ||
Line 26: | Line 35: | ||
==== Proměnné ==== | ==== Proměnné ==== | ||
%%${{runner.os}}%%\\ | %%${{runner.os}}%%\\ | ||
- | + | %%${{matrix.version}}%% ... provede krok několikrát, | |
- | ==== on sekce ==== | + | ==== root sekce ==== |
- | push.branches: | + | ===on=== |
+ | %%push.branches: | ||
pull_request.branches: | pull_request.branches: | ||
- | workflow_dispach: | + | workflow_dispach: |
=== workflow_call === | === workflow_call === | ||
Line 47: | Line 57: | ||
workflow_call.outputs.PRVNI.value: | workflow_call.outputs.PRVNI.value: | ||
- | ==== jobs ==== | + | ===concurency=== |
+ | běh na více prostředích | ||
+ | |||
+ | %%concurency.group: | ||
+ | concurency.cancel-in-progress: | ||
+ | |||
+ | ===jobs=== | ||
==== job ==== | ==== job ==== | ||
Line 73: | Line 90: | ||
== run == | == run == | ||
spustí příkaz\\ | spustí příkaz\\ | ||
+ | |||
+ | == github == | ||
+ | run: gh repo list aaa | ||
+ | env.GITHUB_TOKEN: | ||
== actions/ | == actions/ | ||
- | uses: actions/ | + | uses: actions/ |
- | with | + | with:\\ |
- | \_\_path: ~/.m2\\ | + | with.path: ~/.m2 ... ve kterém adresáři se cachuje. ~/.m2 pro maven, %%**%%/ |
- | %%\_\_key: ${{ runner.os }}-cache%% \\ | + | %%with.key: ${{ runner.os }}-cache%% \\ |
- | \_\_restore-keys: "" | + | with.restore-keys: "" |
| | ||
== actions/ | == actions/ | ||
+ | |||
== actions/ | == actions/ | ||
+ | with.node-version: | ||
+ | with.registry-url: | ||
+ | |||
== actions/ | == actions/ | ||
with.java-version: | with.java-version: | ||
with.distribution: | with.distribution: | ||
with.cache: ' | with.cache: ' | ||
+ | |||
+ | == docker/ | ||
+ | |||
+ | == docker/ | ||
+ | with.username: | ||
+ | with.password: | ||
+ | |||
+ | == docker/ | ||
+ | with.context: | ||
+ | with.push: true\\ | ||
+ | with.tags: aa/bb:cc\\ |