Skip to content

Merge pull request #49 from LN-Zap/refactor #6

Merge pull request #49 from LN-Zap/refactor

Merge pull request #49 from LN-Zap/refactor #6

Workflow file for this run

name: Main
on:
push:
branches:
- master
paths-ignore:
- "**/*.md"
jobs:
publish:
runs-on: "ubuntu-latest"
env:
DOCKERHUB_IMAGE: lnzap/bitcoin-blended-fee-estimator
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test
- name: Dockerhub login
run: "docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_PASSWORD }}"
- uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # pin@v3
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # pin@v3
- uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # pin@v5
with:
push: true
tags: |
${{ env.DOCKERHUB_IMAGE }}:dev
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max