Skip to content

Commit

Permalink
docker: Testing docker publishing via github action
Browse files Browse the repository at this point in the history
Testing version for PR ##7331.
  • Loading branch information
ShahanaFarooqui committed Jun 13, 2024
1 parent c9f7b78 commit dcae2a9
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and push multi-platform docker images

on:
push:
tags:
- '^v[0-9]{2}\.[0-9]{2}(\.[0-9]{1,2})?$'
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/arm/v7
tags: |
elementsproject/lightningd:${{ github.event.inputs.version }}

0 comments on commit dcae2a9

Please sign in to comment.