mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
test build
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
7cef67643a
commit
8eb484034c
2 changed files with 14 additions and 6 deletions
19
.github/workflows/rest-sample.yaml
vendored
19
.github/workflows/rest-sample.yaml
vendored
|
|
@ -12,8 +12,10 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
paths: [ "asset-transfer-basic/rest-api-typescript/**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
paths: [ "asset-transfer-basic/rest-api-typescript/**" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-sample:
|
test-sample:
|
||||||
|
|
@ -52,11 +54,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ env.IMAGE_NAME }}
|
${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
# todo: where shall we describe the revision of the sample component(s)?
|
||||||
type=semver,pattern={{version}}
|
# tags: |
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
# type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}
|
# type=semver,pattern={{major}}
|
||||||
type=sha,format=long
|
# type=semver,pattern={{major}}.{{minor}}
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
|
@ -73,6 +75,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: asset-transfer-basic/rest-api-typescript
|
context: asset-transfer-basic/rest-api-typescript
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
# todo: this is not right as it may try to publish on any push event
|
||||||
|
# push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
||||||
|
# todo: temp hack
|
||||||
|
push: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
@ -251,3 +251,4 @@ curl --include --header "Content-Type: application/json" --header "X-Api-Key: ${
|
||||||
```shell
|
```shell
|
||||||
curl --include --header "X-Api-Key: ${SAMPLE_APIKEY}" --request DELETE http://localhost:3000/api/assets/asset7
|
curl --include --header "X-Api-Key: ${SAMPLE_APIKEY}" --request DELETE http://localhost:3000/api/assets/asset7
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue