Skip to content

hongfs/ecs-command-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECS Command Actions

作用于 GitHub Actions,向阿里云 ECS 服务器发送命令执行。比如服务器拉取最新代码、拉取最新容器镜像、重启容器等。

- uses: docker://ghcr.io/hongfs/ecs-command-actions:main
  env:
    ALIYUN_ACCESS_KEY_ID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
    ALIYUN_ACCESS_KEY_SECRET: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
    ALIYUN_REGION: cn-shenzhen
    # 配置多个标签来进行过滤
    ALIYUN_TAGS: tags=1;tags2=2
    # 执行的命令
    ALIYUN_SCRIPT: |
      #!/bin/bash

      echo "hello world"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages