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:
Chevdor
2021-12-07 14:50:16 +01:00
committed by GitHub
parent 4aafbe3766
commit a166eb3291
4 changed files with 126 additions and 3 deletions
+2 -2
View File
@@ -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