Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop' of github.com:NethermindEth/warp into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Piwoński committed May 25, 2023
2 parents f841067 + 5584139 commit b4bc1db
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish Package to npmjs
name: Publish Package to npmjs and Docker image
on:
release:
types: [created]
types: [published]

jobs:
build:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -20,3 +20,26 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_KEY }}

dockerhub:
name: Push Docker image to Docker Hub
if: github.repository_owner == 'NethermindEth'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
tags: nethermind/warp:${{ github.event.release.tag_name }}

0 comments on commit b4bc1db

Please sign in to comment.