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 19, 2024
1 parent 7395920 commit ad48ec7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/ci_templates/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{!{ define "go_generate_template" }!}
# <template: go_generate_template>
runs-on: [self-hosted, regular]
defaults:
run:
working-directory: ./${{ github.run_id }}
steps:
{!{ tmpl.Exec "started_at_output" . | strings.Indent 2 }!}
{!{ tmpl.Exec "checkout_step" . | strings.Indent 2 }!}
{!{ tmpl.Exec "login_readonly_registry_step" . | strings.Indent 2 }!}
{!{ tmpl.Exec "werf_install_step" . | strings.Indent 2 }!}

- name: Create workdir
run: mkdir ./${{ github.run_id }}

- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ jobs:

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

# <template: started_at_output>
Expand Down Expand Up @@ -464,6 +467,9 @@ jobs:
channel: ${{env.WERF_CHANNEL}}
# </template: werf_install_step>

- name: Create workdir
run: mkdir ./${{ github.run_id }}

- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test_pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ jobs:

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

# <template: started_at_output>
Expand Down Expand Up @@ -181,6 +184,9 @@ jobs:
channel: ${{env.WERF_CHANNEL}}
# </template: werf_install_step>

- name: Create workdir
run: mkdir ./${{ github.run_id }}

- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ jobs:

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

# <template: started_at_output>
Expand Down Expand Up @@ -231,6 +234,9 @@ jobs:
channel: ${{env.WERF_CHANNEL}}
# </template: werf_install_step>

- name: Create workdir
run: mkdir ./${{ github.run_id }}

- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
Expand Down

0 comments on commit ad48ec7

Please sign in to comment.