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
|
repo: realaravinth/librepages
|
||||||
tags: latest
|
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:
|
publish_bins:
|
||||||
image: rust
|
image: realaravinth/librepages-publisher
|
||||||
when:
|
when:
|
||||||
event: [push, tag, deployment]
|
event: [push, tag, deployment]
|
||||||
commands:
|
commands:
|
||||||
- apt update
|
- /src/scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
|
||||||
- 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
|
|
||||||
secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
|
secrets: [RELEASE_BOT_GPG_SIGNING_KEY, DUMBSERVE_PASSWORD, GPG_PASSWORD]
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
|
@ -38,9 +38,10 @@ DOCKER_IMG="realaravinth/librepages:$3"
|
||||||
|
|
||||||
get_bin(){
|
get_bin(){
|
||||||
echo "[*] Grabbing binary"
|
echo "[*] Grabbing binary"
|
||||||
container_id=$(docker create $DOCKER_IMG)
|
#container_id=$(docker create $DOCKER_IMG)
|
||||||
docker cp $container_id:/usr/local/bin/pages $TARGET_DIR/
|
#docker cp $container_id:/usr/local/bin/pages $TARGET_DIR/
|
||||||
docker rm -v $container_id
|
#docker rm -v $container_id
|
||||||
|
cp /src/librepages $TARGET_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
copy() {
|
copy() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue