Skip to content

Commit 2c365c0

Browse files
committed
Build docker image
1 parent bea2080 commit 2c365c0

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build Signer Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- "mb/remove_accounts"
7+
8+
permissions:
9+
contents: read
10+
packages: write
11+
12+
jobs:
13+
build-and-push-signer-docker:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
submodules: true
21+
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Login to GitHub Container Registry
29+
uses: docker/login-action@v3
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Build and push signer Docker image
36+
uses: docker/build-push-action@v6
37+
with:
38+
context: .
39+
push: true
40+
platforms: linux/amd64,linux/arm64
41+
tags: ghcr.io/commit-boost/signer:dirk-easier-config
42+
cache-from: type=registry,ref=ghcr.io/commit-boost/signer:buildcache
43+
cache-to: type=registry,ref=ghcr.io/commit-boost/signer:buildcache,mode=max
44+
file: provisioning/signer.Dockerfile

0 commit comments

Comments
 (0)