Skip to content

Commit

Permalink
fix submodule problem on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyTakanen committed Mar 8, 2022
1 parent 8c2b8f9 commit b75d7c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: install mailcow-api submodule
run: git submodule update --init --recursive

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
Expand Down
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ WORKDIR /app
# git wants work tree
COPY . .

RUN apt-get -y install git

RUN git submodule update --init --recursive

RUN npm install

FROM debian:buster-slim
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# api
Simple API with a Discord bot for imap.fi

## Install

```
apt-get -y install git
git submodule update --init --recursive
```

## Usage

Obtain these env variables:
Expand Down

0 comments on commit b75d7c5

Please sign in to comment.