简体   繁体   English

在 GitHub 操作上使用 dpl

[英]Use dpl on GitHub Actions

I was used with dpl on gitlab ci.我在 gitlab ci 上与 dpl 一起使用。 Our repo was using a specific version and the code was like that:我们的 repo 使用的是特定版本,代码是这样的:

prod_deploy_api_developer:
  stage: deploy
  script:
    - echo "prod_deploy_api running"
    - apt-get update -qy
    - apt-get install -yqq ruby ruby-dev --silent
    - gem install dpl -v 1.8.47
    - cd ./api
    - dpl --provider=heroku --app=myapp --api-key=mycrazykey --skip-cleanup

Now we migrated that codebase to GitHub, and I didn't found a GitHub Action ready to run.现在我们将该代码库迁移到 GitHub,但我没有找到准备运行的GitHub 操作

I just published Dpl Github Action .我刚刚发布了Dpl Github Action

It's a very simple implementation, and I just added heroku as provider, because is the one I needed to deploy my project like used to do on GitLab.这是一个非常简单的实现,我刚刚添加了heroku作为提供程序,因为这是我需要像以前在 GitLab 上那样部署我的项目的那个。

A use example with heroku: heroku 的使用示例:

Example例子

- name: Dpl to heroku
  uses: tiagogouvea/github-dpl-action@master
  with:
    provider: 'heroku'
    app: 'your-heroku-app-name'
    api-key: 'your-66a593c465c7ec9-heroku-api-key'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GitHub Actions:在作业之间共享共同的动作 - GitHub Actions: share common actions between jobs Github 用测试机在项目中执行动作 - Github Actions implementation in project with test machine dpl无法推送到不合格的目的地:master - dpl unable to push to unqualified destination: master 在 Travis 或 Github Actions 作业之间重用 SBT 编译的结果 - Reusing the result of SBT compilation between Travis or Github Actions jobs 将工作服报告从 Travis-CI 迁移到 GitHub 操作 - Migrating Coveralls Report from Travis-CI to GitHub Actions GitHub 操作中的 TRAVIS_TEST_RESULT 等效项 - What is equivalent of TRAVIS_TEST_RESULT in GitHub Actions 如何将 Travis CI 配置转换为 GitHub Actions 并使用多个版本的 Python 进行测试? - How do I convert Travis CI configuration to GitHub Actions and test with several versions of Python? 使用 Assembly 为 maven 构建创建一个 zip 并将其部署到 github - Use Assembly to create a zip for maven build and deploy it to github 如何将来自 github.io 站点的主题用于 Github 项目页面站点 - How to use theme from github.io site for Github Project Pages sites 如何通过Travis-CI在Github上使用Oracle ojdbc7 - How use Oracle ojdbc7 on Github via Travis-CI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM