This commit is contained in:
parent
88aa76c55b
commit
cfc3f81989
2 changed files with 16 additions and 8 deletions
|
@ -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:
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue