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
8eb484034c
commit
f24e1c44f5
1 changed files with 7 additions and 3 deletions
10
.github/workflows/rest-sample.yaml
vendored
10
.github/workflows/rest-sample.yaml
vendored
|
|
@ -7,6 +7,7 @@ run-name: ${{ github.actor }} is testing the REST Sample
|
||||||
env:
|
env:
|
||||||
NODE_VER: 16.x
|
NODE_VER: 16.x
|
||||||
IMAGE_NAME: ghcr.io/hyperledger/fabric-rest-sample
|
IMAGE_NAME: ghcr.io/hyperledger/fabric-rest-sample
|
||||||
|
# IMAGE_NAME: ghcr.io/hyperledger/fabric-samples/asset-transfer-basic/rest-api-typescript
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -67,14 +68,17 @@ jobs:
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ env.GITHUB_USER }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ env.GITHUB_PAT }}
|
||||||
|
# username: ${{ github.repository_owner }}
|
||||||
|
# password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: push
|
id: push
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
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
|
||||||
|
platforms: linux/amd64
|
||||||
# todo: this is not right as it may try to publish on any push event
|
# todo: this is not right as it may try to publish on any push event
|
||||||
# push: ${{ github.event_name != 'pull_request' }}
|
# push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue