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:38] tomas [Proměnné] |
automatizace:github [2025/06/09 15:29] (current) tomas [Kroky, steps] |
||
---|---|---|---|
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 16: | Line 25: | ||
- run: echo "ahoj, promenna1: ${{env.promenna1}}" | - run: echo "ahoj, promenna1: ${{env.promenna1}}" | ||
- run: echo " | - run: echo " | ||
+ | - run: | | ||
+ | echo "### Test Summary" | ||
id: vystup | id: vystup | ||
- name: failure | - name: failure | ||
Line 29: | Line 40: | ||
==== 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 80: | Line 91: | ||
==== Kroky, steps ==== | ==== Kroky, steps ==== | ||
== run == | == run == | ||
- | spustí příkaz\\ | + | spustí příkaz, nebo příkazy\\ |
+ | shell: bash ... volba shellu, kde se to supustí\\ | ||
+ | %%echo "### Test Summary" | ||
+ | %%echo " | ||
+ | %%echo ${{ env.image_tag }}%% ... pozdější použití proměnné\\ | ||
+ | |||
+ | == 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\\ |