feat: CI: bin publish
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2022-12-19 13:34:42 +05:30
parent 88aa76c55b
commit cfc3f81989
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 16 additions and 8 deletions

View file

@ -35,15 +35,22 @@ pipeline:
repo: realaravinth/librepages
tags: latest
build_publisher_docker_img:
image: plugins/docker
when:
event: [push, tag, deployment]
settings:
dry_run: true
dockerfile: scripts/publish-bins-docker
repo: realaravinth/librepages-publisher
tags: latest
publish_bins:
image: rust
image: realaravinth/librepages-publisher
when:
event: [push, tag, deployment]
commands:
- apt update
- apt-get -y --no-install-recommends install gpg tar curl wget
- echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --batch --import --pinentry-mode loopback
- ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
- /src/scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
services:

View file

@ -38,9 +38,10 @@ DOCKER_IMG="realaravinth/librepages:$3"
get_bin(){
echo "[*] Grabbing binary"
container_id=$(docker create $DOCKER_IMG)
docker cp $container_id:/usr/local/bin/pages $TARGET_DIR/
docker rm -v $container_id
#container_id=$(docker create $DOCKER_IMG)
#docker cp $container_id:/usr/local/bin/pages $TARGET_DIR/
#docker rm -v $container_id
cp /src/librepages $TARGET_DIR
}
copy() {