mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Add CI to build docker images on releases (#836)
* Fix the url of the fetched file * Fix binary in the GPG check * Add docker build * Import GPG pub keys * Copy missing binaries * Checkout first * Add missing mkdir * Set bin as executable * Fix exec flag earlier * Fix docker calls * Fix version parsing * Fix image names * Cleanup * Fix ENV issue * Only allow user keys on pre-releases * Add Docker Hub token and enable pushing * Make Docker owner configurable via secrets * Fix owner * Remove duplicate secret
This commit is contained in:
@@ -36,6 +36,8 @@ RUN apt-get update && \
|
||||
|
||||
# add polkadot-collator binary to the docker image
|
||||
COPY ./target/release/polkadot-collator /usr/local/bin
|
||||
COPY ./target/release/polkadot-collator.asc /usr/local/bin
|
||||
COPY ./target/release/polkadot-collator.sha256 /usr/local/bin
|
||||
COPY ./polkadot-parachains/res/*.json /specs/
|
||||
|
||||
USER polkadot
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
OWNER=parity
|
||||
IMAGE_NAME=polkadot-collator
|
||||
OWNER=${OWNER:-parity}
|
||||
IMAGE_NAME=${IMAGE_NAME:-polkadot-collator}
|
||||
docker build --no-cache --build-arg IMAGE_NAME=$IMAGE_NAME -t $OWNER/$IMAGE_NAME -f ./docker/injected.Dockerfile .
|
||||
docker images | grep $IMAGE_NAME
|
||||
|
||||
Reference in New Issue
Block a user