Use tar to support multiple wildcards in source:
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2020-11-15 00:08:31 +02:00
parent 99c85c7305
commit 896a87301e
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
```yaml ```yaml
--- ---
kind: pipeline kind: pipeline
name: deploy to swarm name: deploy to docker container
steps: steps:
- name: docker cp deploy - name: docker cp deploy
image: 3wordchant/docker-cp-deploy:latest image: 3wordchant/docker-cp-deploy:latest

View File

@ -38,7 +38,7 @@ run_docker_cp() {
return 1 return 1
fi fi
echo docker -H "$REMOTE_DOCKER_HOST" cp "$PLUGIN_SOURCE" "$CONTAINER:$PLUGIN_DEST" echo docker -H "$REMOTE_DOCKER_HOST" cp "$PLUGIN_SOURCE" "$CONTAINER:$PLUGIN_DEST"
docker -H "$REMOTE_DOCKER_HOST" cp "$PLUGIN_SOURCE" "$CONTAINER:$PLUGIN_DEST" tar cf - "$PLUGIN_SOURCE" | docker -H "$REMOTE_DOCKER_HOST" cp - "$CONTAINER:$PLUGIN_DEST"
echo "--- end deploy ---" echo "--- end deploy ---"
} }