mirror of
https://github.com/accumulator/charge-lnd.git
synced 2026-08-13 12:33:01 +02:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
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 }}
|