Skip to content

Commit

Permalink
[ci] Switch to dynamic workdir for build
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Portnov <[email protected]>
  • Loading branch information
Taior committed Nov 21, 2024
1 parent 7395920 commit d257110
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/ci_templates/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{!{ define "go_generate_template" }!}
# <template: go_generate_template>
runs-on: [self-hosted, regular]
defaults:
run:
working-directory: ./${{ github.run_id }}
steps:
- name: Create workdir
working-directory: .
run: mkdir ./${{ github.run_id }}

{!{ tmpl.Exec "started_at_output" . | strings.Indent 2 }!}
{!{ tmpl.Exec "checkout_step" . | strings.Indent 2 }!}
{!{ tmpl.Exec "login_readonly_registry_step" . | strings.Indent 2 }!}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-and-test_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,14 @@ jobs:

# <template: go_generate_template>
runs-on: [self-hosted, regular]
defaults:
run:
working-directory: ./${{ github.run_id }}
steps:
- name: Create workdir
working-directory: .
run: mkdir ./${{ github.run_id }}


# <template: started_at_output>
- name: Job started timestamp
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-and-test_pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,14 @@ jobs:

# <template: go_generate_template>
runs-on: [self-hosted, regular]
defaults:
run:
working-directory: ./${{ github.run_id }}
steps:
- name: Create workdir
working-directory: .
run: mkdir ./${{ github.run_id }}


# <template: started_at_output>
- name: Job started timestamp
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-and-test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,14 @@ jobs:

# <template: go_generate_template>
runs-on: [self-hosted, regular]
defaults:
run:
working-directory: ./${{ github.run_id }}
steps:
- name: Create workdir
working-directory: .
run: mkdir ./${{ github.run_id }}


# <template: started_at_output>
- name: Job started timestamp
Expand Down

0 comments on commit d257110

Please sign in to comment.