Skip to content

Commit

Permalink
Add docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
greimela committed Nov 5, 2023
1 parent 27ee1bf commit 93e2bb0
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Docker Build

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- dockerfile: amd64.Dockerfile
platform: linux/amd64
- dockerfile: arm32v7.Dockerfile
platform: linux/arm/v7
- dockerfile: arm64v8.Dockerfile
platform: linux/arm64/v8

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

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./${{ matrix.dockerfile }}
platforms: ${{ matrix.platform }}
push: true
build-args: |
GIT_COMMIT=${{ github.sha }}
CONFIGURATION_NAME=Altcoins-Release
tags: ghcr.io/${{ github.repository_owner }}/btcpayserver:latest

0 comments on commit 93e2bb0

Please sign in to comment.