【发布时间】:2020-02-19 07:22:11
【问题描述】:
这是我的 Dockerfile
FROM node:10
RUN apt-get -qq update && apt-get -qq -y install bzip2
RUN yarn global add @bluebase/cli && bluebase plugins:add @bluebase/cli-expo && bluebase plugins:add @bluebase/cli-web
RUN bluebase plugins
构建 docker 文件时,它会安装所有依赖项,最后一个命令 RUN bluebase plugins 输出已安装插件的列表。但是当这个图像被推送并在 github 操作中使用时,bluebase 是全局可用的,但没有安装任何插件。我做错了什么?
Github 工作流程
name: Development CI
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- '*' # Push events on all branchs
- '*/*'
- '!master' # Exclude master
- '!next' # Exclude next
- '!alpha' # Exclude alpha
- '!beta' # Exclude beta
jobs:
web-deploy:
container:
image: hashimsohail/bluebase-image
name: Deploy Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check BlueBase
run: bluebase #Outputs list of comamnds available with bluebase
- name: Check BlueBase Plugins
run: bluebase plugins #Outputs no plugins installed
【问题讨论】:
-
你的 github 中的运行没有覆盖 dockerfile 中的吗?
-
它不能覆盖,第一个运行命令只检查它是否全局安装,另一个应该打印安装的插件列表,所以我可以继续前进。
标签: docker continuous-integration dockerfile continuous-deployment github-actions