Skip to content

fix(swap): handle new swap type [WEB-1153] (#771) #569

fix(swap): handle new swap type [WEB-1153] (#771)

fix(swap): handle new swap type [WEB-1153] (#771) #569

name: Release Swap Service CI 🚀
concurrency:
group: ${{ github.ref }}-release-swap-service-ci
cancel-in-progress: false
on:
workflow_dispatch:
push:
tags:
- 'swap/v*'
branches:
- main
- release/*
paths:
- packages/swap/**
- packages/shared/**
jobs:
pre-checks:
uses: ./.github/workflows/_01_pre_checks.yml
with:
package: swap
secrets: inherit
checks:
needs: [pre-checks]
uses: ./.github/workflows/_02_checks.yml
with:
package: swap
secrets: inherit
build-docker-images:
runs-on: ubuntu-latest
needs: checks
name: Trigger Docker Image Build in chainflip-io/chainflip-web-services 🪼
steps:
- name: Dispatch build-swap-backspin to chainflip-web-services 🦕
if: startsWith(github.ref, 'refs/heads/main') == true
uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570
with:
repository: chainflip-io/chainflip-web-services
event-type: build-swap-backspin
token: ${{ secrets.CF_PUBLIC_GITHUB_BOT_TOKEN }}
client-payload: '{"github_sha": "${{ github.sha }}", "github_ref": "${{ github.ref }}", "event_type": "build-swap-backspin"}'
- name: Dispatch build-swap-sisyphos to chainflip-web-services 🦕
if: startsWith(github.ref, 'refs/heads/release') == true
uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570
with:
repository: chainflip-io/chainflip-web-services
event-type: build-swap-sisyphos
token: ${{ secrets.CF_PUBLIC_GITHUB_BOT_TOKEN }}
client-payload: '{"github_sha": "${{ github.sha }}", "github_ref": "${{ github.ref }}", "event_type": "build-swap-sisyphos"}'
- name: Dispatch build-swap-perseverance to chainflip-web-services 🦕
if: startsWith(github.ref, 'refs/tags/') == true
uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570
with:
repository: chainflip-io/chainflip-web-services
event-type: build-swap-perseverance
token: ${{ secrets.CF_PUBLIC_GITHUB_BOT_TOKEN }}
client-payload: '{"github_sha": "${{ github.sha }}", "github_ref": "${{ github.ref }}", "event_type": "build-swap-perseverance"}'