From b4cb4aab75d88111cd1212a9ae2e68fd52858d01 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 12 Dec 2019 13:20:08 +0700 Subject: [PATCH] Save images as build artifact --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 043de14..778b6db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,3 +38,12 @@ jobs: run: docker run --entrypoint sh lukechilds/bitcoind:$DOCKER_TAG '-c' 'uname -a && . /etc/os-release && echo $PRETTY_NAME' - name: Check bitcoind -version run: (docker run lukechilds/bitcoind:$DOCKER_TAG -version | tee /dev/stderr | grep -q ${{ matrix.version }}) 2>&1 + - name: Save built image into a .tgz file + run: mkdir -p images && docker save lukechilds/bitcoind:$DOCKER_TAG | gzip > "images/bitcoind:$DOCKER_TAG.tgz" + - name: Print sha256sum of built image + run: sha256sum images/* + - name: Upload built image + uses: actions/upload-artifact@v1.0.0 + with: + name: images + path: images