From af513003b8788edabbaf461da58e4491c8da9a24 Mon Sep 17 00:00:00 2001 From: Janison Sivarajah Date: Wed, 2 Dec 2020 15:18:38 -0500 Subject: [PATCH] Pass IPFS port and repo path env vars to CI (#273) --- .github/workflows/release.yml | 2 ++ .goreleaser.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 125acce7..7080f63b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,6 +51,8 @@ jobs: args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IPFS_NODE_ADDR: ${{ secrets.IPFS_NODE_ADDR }} + IPFS_NODE_PATH: ${{ secrets.IPFS_NODE_PATH }} SERVICES_API_URL: ${{ secrets[steps.secretnames.outputs.SERVICES_API_URL] }} VAULT_API_URL: ${{ secrets[steps.secretnames.outputs.VAULT_API_URL] }} VAULT_SALT_SECRET: ${{ secrets[steps.secretnames.outputs.VAULT_SALT_SECRET] }} diff --git a/.goreleaser.yml b/.goreleaser.yml index be8bdf33..db5de96c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -22,6 +22,8 @@ builds: - -X main.textileuserkey={{ .Env.TXL_USER_KEY }} - -X main.textileusersecret={{ .Env.TXL_USER_SECRET }} - -X main.spacestoragesiteurl={{ .Env.SPACE_STORAGE_SITE_URL }} + - -X main.ipfsnodeaddr={{ .Env.IPFS_NODE_ADDR }} + - -X main.ipfsnodepath={{ .Env.IPFS_NODE_PATH }} main: ./cmd/space-daemon/main.go binary: space goos: @@ -42,6 +44,8 @@ builds: - -X main.textileuserkey={{ .Env.TXL_USER_KEY }} - -X main.textileusersecret={{ .Env.TXL_USER_SECRET }} - -X main.spacestoragesiteurl={{ .Env.SPACE_STORAGE_SITE_URL }} + - -X main.ipfsnodeaddr={{ .Env.IPFS_NODE_ADDR }} + - -X main.ipfsnodepath={{ .Env.IPFS_NODE_PATH }} main: ./cmd/space-daemon/main.go binary: space goos: @@ -64,6 +68,8 @@ builds: - -X main.textileuserkey={{ .Env.TXL_USER_KEY }} - -X main.textileusersecret={{ .Env.TXL_USER_SECRET }} - -X main.spacestoragesiteurl={{ .Env.SPACE_STORAGE_SITE_URL }} + - -X main.ipfsnodeaddr={{ .Env.IPFS_NODE_ADDR }} + - -X main.ipfsnodepath={{ .Env.IPFS_NODE_PATH }} main: ./cmd/space-daemon/main.go binary: space goos: