11 Commits

Author SHA1 Message Date
smf
e39a4b8cea Merge pull request 'pack' (#1) from pack into local
Reviewed-on: #1
2024-03-06 11:40:05 +08:00
smf
30e8216aac no pack 2024-03-06 11:39:21 +08:00
smf
aac8c97a53 add pack action 2024-03-05 21:35:49 +08:00
smf
5c6b04eda8 change base image 2024-03-05 17:12:08 +08:00
smf
71bbecf3a2 更新基础镜像 2024-03-05 17:01:55 +08:00
smf
e60d189fd7 check version 2024-03-05 16:27:34 +08:00
smf
ec857c7af8 restore 2024-03-05 16:08:40 +08:00
smf
824e8e340d plugin cmd 2024-03-05 15:32:52 +08:00
smf
110724cd60 add . 2024-03-05 12:33:55 +08:00
smf
101b7e5e22 ssh test 2024-03-04 22:19:33 +08:00
smf
f0f9c0800d fix echo info 2024-03-04 21:11:23 +08:00
3 changed files with 3 additions and 42 deletions

View File

@@ -1,40 +0,0 @@
name: Release
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
tags: |
sulthonzh/docker-remote-deployment-action:latest
sulthonzh/docker-remote-deployment-action:${{ github.event.release.tag_name }}

View File

@@ -1,4 +1,4 @@
FROM docker/compose:1.29.2 FROM alpinelinux/docker-compose
LABEL 'name'='Docker Deployment Action' LABEL 'name'='Docker Deployment Action'
LABEL 'com.github.actions.name'='Docker Deployment' LABEL 'com.github.actions.name'='Docker Deployment'

View File

@@ -73,10 +73,11 @@ case $INPUT_DEPLOYMENT_MODE in
*) *)
INPUT_DEPLOYMENT_MODE="docker-compose" INPUT_DEPLOYMENT_MODE="docker-compose"
DEPLOYMENT_COMMAND="docker-compose -f $STACK_FILE $DEPLOYMENT_COMMAND_OPTIONS" DEPLOYMENT_COMMAND="docker compose -f $STACK_FILE $DEPLOYMENT_COMMAND_OPTIONS"
;; ;;
esac esac
echo `docker-compose -v`
SSH_HOST=${INPUT_REMOTE_DOCKER_HOST#*@} SSH_HOST=${INPUT_REMOTE_DOCKER_HOST#*@}