Skip to content

Merge pull request #110 from feelancer21/inbound_fees #160

Merge pull request #110 from feelancer21/inbound_fees

Merge pull request #110 from feelancer21/inbound_fees #160

name: Docker
on:
push:
branches:
- master
tags:
- v*
jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
accumulator/charge-lnd
tags: |
type=semver,pattern={{raw}}
type=ref,event=branch
- name: set up QEMU
uses: docker/setup-qemu-action@v1
- name: set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: ${{ startsWith(github.ref, 'refs/tags/') }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: image digest
run: echo ${{ steps.docker_build.outputs.digest }}