Skip to content

Commit 59c4cb0

Browse files
author
Maxim Konovalenko
committed
Fix
1 parent d083509 commit 59c4cb0

File tree

3 files changed

+11
-118
lines changed

3 files changed

+11
-118
lines changed

.examples/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
registry: registry.deckhouse.io
2020
registry_login: ${{ secrets.REGISTRY_LOGIN }}
2121
registry_password: ${{ secrets.REGISTRY_PASSWORD }}
22+
werf_version: "2.47.5+dk"
23+
fox_access_token: ${{ secrets.FOX_ACCESS_TOKEN }}
24+
deckhouse_private_repo: ${{ secrets.DECKHOUSE_PRIVATE_REPO }}
2225
- uses: deckhouse/modules-actions/build@v4
2326
with:
2427
module_source: registry.deckhouse.io/deckhouse/ce/modules

.examples/use_from_branch.yml

Lines changed: 0 additions & 116 deletions
This file was deleted.

setup/action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ inputs:
1313
werf_version:
1414
description: 'Werf version'
1515
required: true
16+
fox_access_token:
17+
description: 'FOX GitLab access token for downloading werf'
18+
required: true
19+
deckhouse_private_repo:
20+
description: 'Deckhouse private repository URL'
21+
required: true
1622

1723
runs:
1824
using: "composite"
@@ -23,8 +29,8 @@ runs:
2329
shell: bash
2430
run: |
2531
curl --fail -sSL -o ~/bin/werf \
26-
-H "PRIVATE-TOKEN: ${{ secrets.FOX_ACCESS_TOKEN }}" \
27-
"https://${{ secrets.DECKHOUSE_PRIVATE_REPO }}/api/v4/projects/4052/packages/generic/werf/${{ inputs.werf_version }}/werf"
32+
-H "PRIVATE-TOKEN: ${{ inputs.fox_access_token }}" \
33+
"https://${{ inputs.deckhouse_private_repo }}/api/v4/projects/4052/packages/generic/werf/${{ inputs.werf_version }}/werf"
2834
chmod +x ~/bin/werf
2935
export PATH=~/bin:$PATH
3036

0 commit comments

Comments
 (0)