Skip to content

Commit

Permalink
fix: push napi image using a simple command (#1132)
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Prazak <[email protected]>
Co-authored-by: Ondrej Prazak <[email protected]>
  • Loading branch information
xprazak2 and Ondrej Prazak authored Feb 23, 2024
1 parent 18e9b58 commit 936ad31
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/push-napi-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ jobs:
steps:
- name: "Git checkout"
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build image"
run: |
docker build -f aries/wrappers/vcx-napi-rs/${{ inputs.image-type }}.Dockerfile .
docker build -f aries/wrappers/vcx-napi-rs/${{ inputs.image-type }}.Dockerfile -t ghcr.io/hyperledger/aries-vcx/napi-rs-${{ inputs.image-type }}:latest .
- name: "Push image to ghcr.io"
uses: ./.github/actions/publish-image
with:
docker-img: napi-rs-${{ inputs.image-type }}:latest
publish-version: latest
run: |
docker push ghcr.io/hyperledger/aries-vcx/napi-rs-${{ inputs.image-type }}:latest

0 comments on commit 936ad31

Please sign in to comment.