Skip to content

Commit

Permalink
deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aanand1 committed Aug 15, 2024
1 parent c4a7d0b commit f511cfe
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Push Docker Image to GHCR

on:
push:

jobs:
build-and-push:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/fastlane-labs/fastlane-online-solver
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
latest-{{branch}}
sha-{{sha}}
- name: Authenticate to Github registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
2 changes: 1 addition & 1 deletion bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (b *Bot) handlePendingTx(tx *types.Transaction) {
return types.SignTx(tx, types.LatestSignerForChainID(b.chainId), config.SOLVER_PK)
},
Value: big.NewInt(0),
GasLimit: uint64(1000_000),
GasLimit: uint64(2000_000),
}
gasMargin := big.NewInt(0).Mul(big.NewInt(b.config.FrontrunGasMarginGwei), big.NewInt(1e9))
if tx.Type() == types.LegacyTxType {
Expand Down

0 comments on commit f511cfe

Please sign in to comment.