This commit is contained in:
smf
2024-03-08 21:46:42 +08:00
parent 45da665ce0
commit 5e5c5eeda2
2 changed files with 6 additions and 4 deletions

View File

@@ -1,11 +1,10 @@
# FROM alpinelinux/docker-compose
FROM docker
COPY --from=docker/compose-bin:edge /docker-compose /usr/libexec/docker/cli-plugins/docker-compose
RUN docker compose version
LABEL 'name'='Docker Deployment Action'
LABEL 'com.github.actions.name'='Docker Deployment'
LABEL 'com.github.actions.description'='supports docker-compose and Docker Swarm deployments'
LABEL 'name'='Docker Compose Remote Deployment Action'
LABEL 'com.github.actions.name'='Docker Compose Remote Deployment'
LABEL 'com.github.actions.description'='supports docker-compose remotely through ssh.'
LABEL 'com.github.actions.icon'='send'
LABEL 'com.github.actions.color'='green'

View File

@@ -65,6 +65,9 @@ fi
echo >> ~/.ssh/config
chmod 600 ~/.ssh/config
docker -v
docker compose version
set context
echo "Create docker context"
docker context create remote --docker "host=ssh://REMOTE_DOCKER_HOST"