test build

Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
Josh Kneubuhl 2022-11-15 09:08:55 -05:00
parent 8eb484034c
commit f24e1c44f5

View file

@ -7,6 +7,7 @@ run-name: ${{ github.actor }} is testing the REST Sample
env:
NODE_VER: 16.x
IMAGE_NAME: ghcr.io/hyperledger/fabric-rest-sample
# IMAGE_NAME: ghcr.io/hyperledger/fabric-samples/asset-transfer-basic/rest-api-typescript
on:
workflow_dispatch:
@ -67,14 +68,17 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ env.GITHUB_USER }}
password: ${{ env.GITHUB_PAT }}
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: push
uses: docker/build-push-action@v3
with:
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
# push: ${{ github.event_name != 'pull_request' }}