Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Ashraf Fouda <[email protected]>
  • Loading branch information
ashraffouda committed Feb 5, 2025
1 parent 96395bf commit 3c6ad3d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bin-package-18.04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
name: ${{ steps.package.outputs.name }}.flist
- name: Tagging
uses: threefoldtech/publish-flist@master
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/zos-light')
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/register-nodes-in-registrar-server-test')
with:
token: ${{ secrets.token }}
action: tag
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/bin-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ jobs:
with:
threefold: ${{ secrets.token }}
action: publish
baseurl: 'https://v4.hub.grid.tf'
backend: 'v4.hub.grid.tf:9941'
baseurl: "https://v4.hub.grid.tf"
backend: "v4.hub.grid.tf:9941"
user: tf-autobuilder
root: bins/releases/${{ inputs.package }}
name: ${{ steps.package.outputs.name }}.flist
- name: Tagging
uses: threefoldtech/publish-flist@master
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/zos-light')
if: success() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/register-nodes-in-registrar-server-test')
with:
threefold: ${{ secrets.token }}
action: tag
baseurl: 'https://v4.hub.grid.tf'
baseurl: "https://v4.hub.grid.tf"
user: tf-autobuilder
name: ${{ steps.tag.outputs.reference }}/${{ inputs.package }}.flist
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:

# only for main branch (devnet)
# this basically releases this build to devnet
# TODO remove zos-light
# TODO remove register-nodes-in-registrar-server-test
- name: Cross tagging (development)
if: success() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/register-nodes-in-registrar-server-test')
uses: threefoldtech/publish-flist@master
Expand Down
10 changes: 4 additions & 6 deletions cmds/identityd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ func main() {
ver bool
debug bool

id bool
net bool
farm bool
address bool
id bool
net bool
farm bool
)

flag.StringVar(&root, "root", "/var/cache/modules/identityd", "root working directory of the module")
Expand All @@ -61,7 +60,6 @@ func main() {
flag.BoolVar(&id, "id", false, "[deprecated] prints the node ID and exits")
flag.BoolVar(&net, "net", false, "prints the node network and exits")
flag.BoolVar(&farm, "farm", false, "prints the node farm id and exits")
flag.BoolVar(&address, "address", false, "prints the node ss58 address and exits")

flag.Parse()
if ver {
Expand All @@ -78,7 +76,7 @@ func main() {
env := environment.MustGet()
fmt.Println(env.RunningMode.String())
os.Exit(0)
} else if id || address {
} else if id {
ctx := context.Background()
if err != nil {
log.Fatal().Err(err).Msg("failed to connect to zbus")
Expand Down

0 comments on commit 3c6ad3d

Please sign in to comment.