mirror of
https://github.com/Retropex/docker-bitcoind-prebuilt.git
synced 2025-05-12 19:20:48 +02:00
Compare commits
2 Commits
2886b3aba0
...
0a67cffe0e
Author | SHA1 | Date | |
---|---|---|---|
0a67cffe0e | |||
e737207da8 |
42
.github/workflows/publish-on-tag.yml
vendored
42
.github/workflows/publish-on-tag.yml
vendored
@ -1,42 +0,0 @@
|
||||
name: Publish Docker image on tag
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
push_to_dockerhub:
|
||||
name: Push Docker image to Docker Hub
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
run: |
|
||||
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
||||
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: getumbrel/bitcoind:${{ steps.meta.outputs.TAG }}
|
||||
build-args: |
|
||||
VERSION=${{ steps.meta.outputs.VERSION }}
|
@ -9,7 +9,7 @@ WORKDIR /build
|
||||
|
||||
RUN echo "Installing build deps"
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y wget pgp
|
||||
RUN apt-get install -y wget pgp curl jq
|
||||
|
||||
RUN echo "Deriving tarball name from \$TARGETPLATFORM" && \
|
||||
case "${TARGETPLATFORM}" in \
|
||||
@ -27,7 +27,7 @@ RUN echo "Downloaded release assets:" && ls
|
||||
|
||||
RUN echo "Verifying PGP signatures"
|
||||
RUN curl -s "https://api.github.com/repos/bitcoinknots/guix.sigs/contents/builder-keys" | jq -r '.[].download_url' | while read url; do curl -s "$url" | gpg --import; done
|
||||
RUN gpg --verify SHA256SUMS.asc 2>&1 >/dev/null | grep "^gpg: Good signature from" || { echo "No valid signature"; exit 1; }
|
||||
RUN gpg --verify SHA256SUMS.asc SHA256SUMS
|
||||
RUN echo "PGP signature verification passed"
|
||||
|
||||
RUN echo "Verifying checksums"
|
||||
|
Loading…
Reference in New Issue
Block a user