Skip to content

Commit

Permalink
Pass through build args
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdean-digicatapult committed Jan 6, 2025
1 parent dd65c5d commit 2456695
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,23 @@ jobs:
uses: digicatapult/shared-workflows/.github/workflows/tests-npm.yml@main
with:
tests: '["test"]'
kubo-version:
runs-on: ubuntu-latest
outputs:
ipfs_tag: ${{ steps.kubo_version.outputs.IPFS_TAG }}
steps:
- name: Get Kubo Version
id: kubo_version
run: |
echo "IPFS_TAG=v$(jq .devDependencies.kubo ./package.json | sed 's/[\^"]//g')" >> $GITHUB_OUTPUT
build-docker:
needs: [tests, static-checks-npm]
needs: [tests, static-checks-npm, kubo-version]
uses: digicatapult/shared-workflows/.github/workflows/build-docker.yml@main
with:
push_dockerhub: true
push_ghcr: true
build_args: |
IPFS_TAG=${{ needs.kubo-version.outputs.ipfs_tag }}
permissions:
packages: write
contents: write
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,22 @@ jobs:
uses: digicatapult/shared-workflows/.github/workflows/tests-npm.yml@main
with:
tests: '["test"]'
kubo-version:
runs-on: ubuntu-latest
outputs:
ipfs_tag: ${{ steps.kubo_version.outputs.IPFS_TAG }}
steps:
- name: Get Kubo Version
id: kubo_version
run: |
echo "IPFS_TAG=v$(jq .devDependencies.kubo ./package.json | sed 's/[\^"]//g')" >> $GITHUB_OUTPUT
build-docker:
uses: digicatapult/shared-workflows/.github/workflows/build-docker.yml@main
needs:
- kubo-version
permissions:
packages: write
contents: write
with:
build_args: |
IPFS_TAG=${{ needs.kubo-version.outputs.ipfs_tag }}

0 comments on commit 2456695

Please sign in to comment.