Skip to content

Commit 2287d58

Browse files
committed
updates workflow to use the new hub
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
1 parent 60ec98d commit 2287d58

6 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/bin-package-18.04.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
with:
4949
token: ${{ secrets.token }}
5050
action: publish
51+
baseurl: "https://hub.threefold.me"
52+
backend: "hub.threefold.me:9980"
5153
user: tf-autobuilder
5254
root: bins/releases/${{ inputs.package }}
5355
name: ${{ steps.package.outputs.name }}.flist
@@ -57,6 +59,8 @@ jobs:
5759
with:
5860
token: ${{ secrets.token }}
5961
action: tag
62+
baseurl: "https://hub.threefold.me"
63+
backend: "hub.threefold.me:9980"
6064
user: tf-autobuilder
6165
name: ${{ steps.tag.outputs.reference }}/${{ inputs.package }}.flist
6266
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist

.github/workflows/bin-package-no-tag.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
with:
3838
token: ${{ secrets.token }}
3939
action: publish
40+
baseurl: "https://hub.threefold.me"
41+
backend: "hub.threefold.me:9980"
4042
user: tf-autobuilder
4143
root: bins/releases/${{ inputs.package }}
4244
name: ${{ steps.package.outputs.name }}.flist

.github/workflows/bin-package.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,28 @@ jobs:
5454
run: |
5555
cd bins
5656
./bins-extra.sh --package ${{ inputs.package }}
57+
5758
- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
5859
if: success() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/testdeploy' || startsWith(github.ref, 'refs/tags/v'))
60+
5961
uses: threefoldtech/publish-flist@master
6062
with:
6163
token: ${{ secrets.token }}
6264
action: publish
65+
baseurl: "https://hub.threefold.me"
66+
backend: "hub.threefold.me:9980"
6367
user: tf-autobuilder
6468
root: bins/releases/${{ inputs.package }}
6569
name: ${{ steps.package.outputs.name }}.flist
70+
6671
- name: Tagging
6772
uses: threefoldtech/publish-flist@master
6873
if: success() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/testdeploy'|| startsWith(github.ref, 'refs/tags/v'))
6974
with:
7075
token: ${{ secrets.token }}
7176
action: tag
77+
baseurl: "https://hub.threefold.me"
78+
backend: "hub.threefold.me:9980"
7279
user: tf-autobuilder
7380
name: ${{ steps.tag.outputs.reference }}/${{ inputs.package }}.flist
7481
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist

.github/workflows/grid-deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
with:
2727
token: ${{ secrets.HUB_JWT }}
2828
action: crosslink
29+
baseurl: "https://hub.threefold.me"
30+
backend: "hub.threefold.me:9980"
2931
user: tf-zos
3032
name: zos:${{ github.event.inputs.grid }}-3:latest.flist
3133
target: tf-autobuilder/zos:${{ github.event.inputs.version }}.flist

.github/workflows/publish-bootstrap.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
root: archive
4141
token: ${{ secrets.HUB_JWT }}
4242
name: ${{ steps.setname.outputs.build }}
43+
baseurl: "https://hub.threefold.me"
44+
backend: "hub.threefold.me:9980"
4345
- name: Symlink flist (development)
4446
if: success()
4547
uses: threefoldtech/publish-flist@master
@@ -49,6 +51,8 @@ jobs:
4951
token: ${{ secrets.HUB_JWT }}
5052
name: ${{ steps.setname.outputs.build }}
5153
target: bootstrap:development.flist
54+
baseurl: "https://hub.threefold.me"
55+
backend: "hub.threefold.me:9980"
5256
- name: Symlink flist (release)
5357
if: success() && github.ref == 'refs/heads/main'
5458
uses: threefoldtech/publish-flist@master
@@ -58,3 +62,5 @@ jobs:
5862
token: ${{ secrets.HUB_JWT }}
5963
name: ${{ steps.setname.outputs.build }}
6064
target: bootstrap:latest.flist
65+
baseurl: "https://hub.threefold.me"
66+
backend: "hub.threefold.me:9980"

.github/workflows/publish.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
user: tf-autobuilder
6565
root: archive
6666
name: zos:${{ steps.version.outputs.version }}.flist
67+
baseurl: "https://hub.threefold.me"
68+
backend: "hub.threefold.me:9980"
6769

6870
# we tag only if and only if we merged to main
6971
# in that case the tag will be the short sha.
@@ -72,21 +74,27 @@ jobs:
7274
- name: Tagging
7375
uses: threefoldtech/publish-flist@master
7476
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')|| github.ref == 'refs/heads/testdeploy')
77+
7578
with:
7679
token: ${{ secrets.HUB_JWT }}
7780
action: tag
7881
user: tf-autobuilder
7982
name: ${{ steps.tag.outputs.reference }}/zos.flist
8083
target: tf-autobuilder/zos:${{ steps.version.outputs.version }}.flist
84+
baseurl: "https://hub.threefold.me"
85+
backend: "hub.threefold.me:9980"
8186

8287
# only for main branch (devnet)
8388
# this basically releases this build to devnet
8489
- name: Cross tagging (development)
8590
if: success() && (github.ref == 'refs/heads/main'|| github.ref == 'refs/heads/testdeploy')
91+
8692
uses: threefoldtech/publish-flist@master
8793
with:
8894
token: ${{ secrets.HUB_JWT }}
8995
action: crosstag
9096
user: tf-zos
9197
name: development
9298
target: tf-autobuilder/${{ steps.tag.outputs.reference }}
99+
baseurl: "https://hub.threefold.me"
100+
backend: "hub.threefold.me:9980"

0 commit comments

Comments
 (0)