base_image #4
10
Dockerfile
10
Dockerfile
@@ -1,8 +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 'name'='Docker Compose Remote Deployment Action'
|
||||||
LABEL 'com.github.actions.name'='Docker Deployment'
|
LABEL 'com.github.actions.name'='Docker Compose Remote Deployment'
|
||||||
LABEL 'com.github.actions.description'='supports docker-compose and Docker Swarm deployments'
|
LABEL 'com.github.actions.description'='supports docker-compose remotely through ssh.'
|
||||||
LABEL 'com.github.actions.icon'='send'
|
LABEL 'com.github.actions.icon'='send'
|
||||||
LABEL 'com.github.actions.color'='green'
|
LABEL 'com.github.actions.color'='green'
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,9 @@ fi
|
|||||||
echo >> ~/.ssh/config
|
echo >> ~/.ssh/config
|
||||||
chmod 600 ~/.ssh/config
|
chmod 600 ~/.ssh/config
|
||||||
|
|
||||||
|
docker -v
|
||||||
|
docker compose version
|
||||||
|
|
||||||
set context
|
set context
|
||||||
echo "Create docker context"
|
echo "Create docker context"
|
||||||
docker context create remote --docker "host=ssh://REMOTE_DOCKER_HOST"
|
docker context create remote --docker "host=ssh://REMOTE_DOCKER_HOST"
|
||||||
|
|||||||
Reference in New Issue
Block a user