小编Mat*_*son的帖子

GitHub 操作:如何在 docker 容器内运行命令

今天刚开始学习 CI/CD。不知道今天之前的 docker 是什么。我能够通过我的 Unity 项目获得在 CircleCI 上工作的 CD。所有运行命令都发生在 docker 容器内。

version: 2.1
executors:
  unity:
    docker:
      # https://hub.docker.com/r/gableroux/unity3d/tags
      - image: gableroux/unity3d:2018.2.21f1
jobs:
  build-test:
    executor: unity
    steps:
      - checkout

      # Install zip
      - run: apt-get update
      - run: apt-get install zip -y

      # Decrypt the license file
      - run: openssl aes-256-cbc -d -in .circleci/Unity_v2018.x.ulf.enc -k ${UNITY_LICENSE_DECRYPT_KEY} >> .circleci/Unity_v2018.x.ulf

      # Activate unity
      - run: /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -manualLicenseFile .circleci/Unity_v2018.x.ulf || exit 0

      # Build Windows and OSX
      - run: …
Run Code Online (Sandbox Code Playgroud)

github-actions

7
推荐指数
1
解决办法
4994
查看次数

标签 统计

github-actions ×1