Skip to content

Commit 54304ae

Browse files
committed
master, ci: test image, run on PRs
1 parent 48bd150 commit 54304ae

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/alpine-master.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: alpine-nightly-master
33
on:
44
schedule:
55
- cron: "0 0 * * *"
6+
push:
7+
paths:
8+
- 'master/alpine/Dockerfile'
9+
- 'master/alpine/docker-entrypoint.sh'
610

711
env:
812
REGISTRY_IMAGE: bitcoin/bitcoin
@@ -65,6 +69,10 @@ jobs:
6569
VCS_REF=${{ github.sha }}
6670
outputs: type=image,push-by-digest=true,name-canonical=true
6771

72+
- name: Test bitcoind
73+
run: |
74+
docker run --rm --platform ${{ matrix.platform.docker }} ${{ steps.build.outputs.imageid }} bitcoind --version
75+
6876
- name: Export digest
6977
run: |
7078
mkdir -p ${{ runner.temp }}/digests
@@ -108,11 +116,17 @@ jobs:
108116
type=raw,value=${{ env.TAGS }}
109117
110118
- name: Create manifest list and push
119+
if: github.event_name == 'schedule'
111120
working-directory: ${{ runner.temp }}/digests
112121
run: |
113122
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
114123
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
115124
125+
- name: Test bitcoind (pulled image)
126+
if: github.event_name == 'schedule'
127+
run: |
128+
docker run --rm ${{ env.REGISTRY_IMAGE }}:${{ env.TAGS }} bitcoind --version
129+
116130
- name: Inspect image
117131
run: |
118132
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

.github/workflows/debian-master.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: debian-nightly-master
33
on:
44
schedule:
55
- cron: "0 0 * * *"
6+
push:
7+
paths:
8+
- 'master/Dockerfile'
9+
- 'master/docker-entrypoint.sh'
610

711
env:
812
REGISTRY_IMAGE: bitcoin/bitcoin
@@ -65,6 +69,10 @@ jobs:
6569
VCS_REF=${{ github.sha }}
6670
outputs: type=image,push-by-digest=true,name-canonical=true
6771

72+
- name: Test bitcoind
73+
run: |
74+
docker run --rm --platform ${{ matrix.platform.docker }} ${{ steps.build.outputs.imageid }} bitcoind --version
75+
6876
- name: Export digest
6977
run: |
7078
mkdir -p ${{ runner.temp }}/digests
@@ -108,11 +116,17 @@ jobs:
108116
type=raw,value=${{ env.TAGS }}
109117
110118
- name: Create manifest list and push
119+
if: github.event_name == 'schedule'
111120
working-directory: ${{ runner.temp }}/digests
112121
run: |
113122
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
114123
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
115124
125+
- name: Test bitcoind (pulled image)
126+
if: github.event_name == 'schedule'
127+
run: |
128+
docker run --rm ${{ env.REGISTRY_IMAGE }}:${{ env.TAGS }} bitcoind --version
129+
116130
- name: Inspect image
117131
run: |
118132
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

0 commit comments

Comments
 (0)