Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ unknown docker-images. It is entirely built from Dockerfile on top of
container will have this prefix in name.
* `docker_compose_filename` - Path to the docker-compose file in the repository.
* `use_stack` - Use docker stack instead of docker-compose.
* `tar_package_operation_modifiers` - Modifiers for tar package operation. Default is '--exclude .git --exclude .github'

# Usage example

Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- actions/chockout@v2
- actions/checkout@v2

- uses: alex-ac/github-action-ssh-docker-compose@master
name: Docker-Stack Remote Deployment
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ inputs:
use_stack:
description: Use docker stack instead of docker compose ("true" or "false").
default: 'false'
tar_package_operation_modifiers:
description: Tar operation modifiers used while creating the package.
default: '--exclude .git --exclude .github --exclude .gitignore --exclude .gitmodules --exclude .vscode'
runs:
using: docker
image: Dockerfile
Expand All @@ -34,3 +37,4 @@ runs:
DOCKER_COMPOSE_FILENAME: ${{ inputs.docker_compose_filename }}
DOCKER_COMPOSE_PREFIX: ${{ inputs.docker_compose_prefix }}
USE_DOCKER_STACK: ${{ inputs.use_stack }}
TAR_PACKAGE_OPERATION_MODIFIERS: ${{ inputs.tar_package_operation_modifiers }}
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cleanup() {
trap cleanup EXIT

log "Packing workspace into archive to transfer onto remote machine."
tar cjvf /tmp/workspace.tar.bz2 --exclude .git .
tar cjvf /tmp/workspace.tar.bz2 $TAR_PACKAGE_OPERATION_MODIFIERS .

log "Launching ssh agent."
eval `ssh-agent -s`
Expand Down