Skip to content

Commit

Permalink
Move publishing of REST sample Image from AZP to GHA
Browse files Browse the repository at this point in the history
This patch moves publishing of REST sample image from AZP to GHA.
This was the last job running on AZP.
Also, this patch will fix an error encounterd during the image build.
Publishing of REST sample image is now only executed when pushing to main.

Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
  • Loading branch information
satota2 committed Sep 28, 2023
1 parent 98f7481 commit 382479b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 46 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/rest-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ jobs:
- name: Test REST Sample Application
run: npm test
working-directory: asset-transfer-basic/rest-api-typescript

- name: Build REST Sample Docker Image
run: docker build -t ghcr.io/hyperledger/fabric-rest-sample .
working-directory: asset-transfer-basic/rest-api-typescript

- name: Publish REST Sample Docker Image
if: github.event_name == 'push' && (github.ref == 'refs/heads/main')
run: |
echo ${{ secrets.GITHUB_PAT }} | docker login ghcr.io -u ${{ secrets.GITHUB_USER }} --password-stdin
docker push ghcr.io/hyperledger/fabric-rest-sample:latest
working-directory: asset-transfer-basic/rest-api-typescript
Empty file.
46 changes: 0 additions & 46 deletions ci/azure-pipelines.yml

This file was deleted.

0 comments on commit 382479b

Please sign in to comment.