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
automatizace:github [2023/06/02 15:51]
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 "https://github.com/actions/runner/releases/download/v${VERSION}/actions-runner-linux-x64-${VERSION}.tar.gz"%%\\
 +tar xzf ./actions-runner-linux.tar.gz && rm ./actions-runner-linux.tar.gz \\
 +%%./config.sh --url https://github.com/VFCZ-Digital/cicd-automation --token XXXX --runnergroup '' --name runner-1 --unattended --labels aws --replace%%\\
 +sudo ./svc.sh install ... instalace služby\\
 +sudo ./svc.sh start ... spuštění služby\\
 +
 +
 ==== Struktura ==== ==== Struktura ====
 definuje se v .github/workflows, napr. build_workflow.yml definuje se v .github/workflows, napr. build_workflow.yml
Line 31: Line 40:
 %%push.branches: -master, 'releases/**'%% ... nastavení push requestu v určitých GIT větvích\\ %%push.branches: -master, 'releases/**'%% ... nastavení push requestu v určitých GIT větvích\\
 pull_request.branches: - master, develop ... pull requesty\\ pull_request.branches: - master, develop ... pull requesty\\
-workflow_dispach: ... \\+workflow_dispach: ... manuální spouštění\\
  
 === workflow_call === === workflow_call ===
Line 81: Line 90:
 == run == == run ==
 spustí příkaz\\ spustí příkaz\\
 +
 +== github ==
 +run: gh repo list aaa
 +env.GITHUB_TOKEN: %%${{secrets.token}}%%
  
 == actions/cache == == actions/cache ==