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:20] tomas [jobs] |
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, | ||
==== root sekce ==== | ==== root sekce ==== | ||
===on=== | ===on=== | ||
- | push.branches: | + | %%push.branches: |
pull_request.branches: | pull_request.branches: | ||
- | workflow_dispach: | + | workflow_dispach: |
=== workflow_call === | === workflow_call === | ||
Line 54: | Line 63: | ||
concurency.cancel-in-progress: | concurency.cancel-in-progress: | ||
+ | ===jobs=== | ||
Line 80: | 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:\\ | ||
- | with.path: ~/.m2\\ | + | with.path: ~/.m2 ... ve kterém adresáři se cachuje. ~/.m2 pro maven, %%**%%/ |
%%with.key: ${{ runner.os }}-cache%% \\ | %%with.key: ${{ runner.os }}-cache%% \\ | ||
with.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\\ |