Merge pull request #351 from luxfi/feat/bridge2 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mpc-nodes | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "mpc-nodes/**" # Only trigger the workflow for changes in the mpc-nodes subfoler | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GitHub Container Registry | |
run: | | |
docker login --username zeekay --password ${{ secrets.GH_TOKEN }} ghcr.io | |
- name: Build and push Docker images | |
run: | | |
cd mpc-nodes/docker # Navigate to the subfolder containing the Docker project | |
# sm-manager | |
docker build -f services/sm-manager -t ghcr.io/luxfi/mpc-nodes/sm-manager:latest . | |
docker push ghcr.io/luxfi/mpc-nodes/sm-manager:latest | |
# mpc-node | |
docker build -f services/mpc-node -t ghcr.io/luxfi/mpc-nodes/mpc-node:latest . | |
docker push ghcr.io/luxfi/mpc-nodes/mpc-node:latest |