How to auto deploying git repositories with submodules on AWS?

前端 未结 8 1077
长发绾君心
长发绾君心 2021-02-04 15:02

I have a submodule in my git repository and my directory structure is like,

app
  -- folder1
  -- folder2
  -- submodule @5855

I have deployed

8条回答
  •  Happy的楠姐
    2021-02-04 15:09

    It has been so long since the issue with submodules was found. But aws cannot fix it. So codepipeline cannot send .git directory to codebuild. So we have to invent new bicecles, my fix is this in buildspec.yml pre-build command

    rm -rf $PWD/*
    git clone --depth 1 https://  -b develop .
    git submodule update --init --recursive
    

    AWS hurry up, cuz our team is considering move back to github.

提交回复
热议问题