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
dcf49bacd6
commit
f03b1d6514
1 changed files with 35 additions and 35 deletions
70
.github/workflows/rest-sample.yaml
vendored
70
.github/workflows/rest-sample.yaml
vendored
|
|
@ -41,38 +41,38 @@ jobs:
|
||||||
run: npm test
|
run: npm test
|
||||||
working-directory: asset-transfer-basic/rest-api-typescript
|
working-directory: asset-transfer-basic/rest-api-typescript
|
||||||
|
|
||||||
docker-image:
|
# docker-image:
|
||||||
runs-on: ubuntu-20.04
|
# runs-on: ubuntu-20.04
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v3
|
# uses: actions/checkout@v3
|
||||||
- name: Docker meta
|
# - name: Docker meta
|
||||||
id: meta
|
# id: meta
|
||||||
uses: docker/metadata-action@v4
|
# uses: docker/metadata-action@v4
|
||||||
with:
|
# with:
|
||||||
images: |
|
# images: |
|
||||||
${{ env.IMAGE_NAME }}
|
# ${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
# tags: |
|
||||||
type=semver,pattern={{version}}
|
# type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
# type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
# type=semver,pattern={{major}}
|
||||||
type=sha,format=long
|
# type=sha,format=long
|
||||||
- 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
|
||||||
uses: docker/setup-buildx-action@v2
|
# uses: docker/setup-buildx-action@v2
|
||||||
- name: Login to GitHub Container Registry
|
# - name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
# uses: docker/login-action@v2
|
||||||
with:
|
# with:
|
||||||
registry: ghcr.io
|
# registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
# username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
# 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: .
|
# context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
# platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
# 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 }}
|
||||||
Loading…
Reference in a new issue