Skip to content

Merge pull request #166 from TrainProtocol/claude/nervous-chandrasekh… #602

Merge pull request #166 from TrainProtocol/claude/nervous-chandrasekh…

Merge pull request #166 from TrainProtocol/claude/nervous-chandrasekh… #602

Workflow file for this run

name: Swap Workflow runner
on:
workflow_dispatch:
push:
branches: [ main, dev ]
paths:
- 'csharp/src/Workflow.Swap/**'
- 'csharp/src/Workflow.Abstractions/**'
- 'csharp/src/Workflow.Common/**'
- 'csharp/src/Infrastructure/**'
- 'csharp/src/Infrastructure.Abstractions/**'
- 'csharp/src/Infrastructure.DependencyInjection/**'
- 'csharp/src/Infrastructure.Webhook/**'
- 'csharp/src/Infrastructure.Network.Grpc/**'
- 'csharp/src/Infrastructure.TokenPrice.Binance/**'
- 'csharp/src/Data.Npgsql/**'
- 'csharp/src/Data.Abstractions/**'
- 'csharp/src/Shared.Proto/**'
- 'csharp/src/Shared.Models/**'
- 'csharp/src/Util/**'
- 'csharp/Directory.Build.props'
- 'csharp/Directory.Packages.props'
- 'protos/**'
- '.github/workflows/swap.yml'
- '.github/actions/docker/**'
pull_request:
branches: [ main, dev ]
paths:
- 'csharp/src/Workflow.Swap/**'
- 'csharp/src/Workflow.Abstractions/**'
- 'csharp/src/Workflow.Common/**'
- 'csharp/src/Infrastructure/**'
- 'csharp/src/Infrastructure.Abstractions/**'
- 'csharp/src/Infrastructure.DependencyInjection/**'
- 'csharp/src/Infrastructure.Webhook/**'
- 'csharp/src/Infrastructure.Network.Grpc/**'
- 'csharp/src/Infrastructure.TokenPrice.Binance/**'
- 'csharp/src/Data.Npgsql/**'
- 'csharp/src/Data.Abstractions/**'
- 'csharp/src/Shared.Proto/**'
- 'csharp/src/Shared.Models/**'
- 'csharp/src/Util/**'
- 'csharp/Directory.Build.props'
- 'csharp/Directory.Packages.props'
- 'protos/**'
- '.github/workflows/swap.yml'
- '.github/actions/docker/**'
release:
types: [published, created]
env:
DOCKER_IMAGE: trainprotocol/solver-swap
DOTNET_VERSION: 9
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Docker build and push
id: docker
uses: ./.github/actions/docker
with:
file: csharp/src/Workflow.Swap/Dockerfile
docker-image: ${{ env.DOCKER_IMAGE }}
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
build-args: |
DOTNET_VERSION=${{ env.DOTNET_VERSION }}