Skip to content

Commit 3675885

Browse files
committed
ci: publishing pre-synced the bitcoin-mutinynet image
1 parent a411dfb commit 3675885

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/docker-publish-bitcoin.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ on:
55
paths:
66
- 'docker/bitcoin-mutinynet.version'
77
- 'docker/Dockerfile.bitcoin-mutinynet'
8+
- 'docker/Dockerfile.bitcoin-mutinynet.presynced'
89
workflow_dispatch:
10+
inputs:
11+
skip_presynced:
12+
description: 'Skip pre-synced image build'
13+
required: false
14+
default: false
15+
type: boolean
916

1017
jobs:
1118
build-and-push:
@@ -34,7 +41,7 @@ jobs:
3441
username: ${{ secrets.DOCKERHUB_USERNAME }}
3542
password: ${{ secrets.DOCKERHUB_TOKEN }}
3643

37-
- name: Build and push
44+
- name: Build and push base image
3845
uses: docker/build-push-action@v5
3946
with:
4047
context: .
@@ -50,3 +57,17 @@ jobs:
5057
SHA256_AMD64=${{ steps.version.outputs.SHA256_AMD64 }}
5158
FILENAME_ARM64=${{ steps.version.outputs.FILENAME_ARM64 }}
5259
SHA256_ARM64=${{ steps.version.outputs.SHA256_ARM64 }}
60+
61+
- name: Build and push pre-synced image
62+
if: ${{ inputs.skip_presynced != true }}
63+
uses: docker/build-push-action@v5
64+
with:
65+
context: .
66+
file: docker/Dockerfile.bitcoin-mutinynet.presynced
67+
platforms: linux/amd64,linux/arm64
68+
push: true
69+
tags: |
70+
${{ secrets.DOCKERHUB_USERNAME }}/bitcoin-mutinynet:presynced-${{ steps.version.outputs.TAG }}
71+
${{ secrets.DOCKERHUB_USERNAME }}/bitcoin-mutinynet:presynced-latest
72+
build-args: |
73+
TAG=${{ steps.version.outputs.TAG }}

0 commit comments

Comments
 (0)