Skip to content

Commit

Permalink
Fix git installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dylangarcia committed Dec 29, 2019
1 parent 6d80dce commit 78ad0e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
envs: AMPLITUDE_KEY,GITHUB_TOKEN,DISCORD_HASH,GITHUB_HEAD_REF
script: |
cd reactibot
sudo git config --global url."https://github.com/".insteadOf [email protected]
sudo git config --global url."https://".insteadOf git://
sudo git checkout $GITHUB_HEAD_REF
sudo git pull
sudo docker container stop $(sudo docker container ls -aq)
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM node:10-alpine
WORKDIR /var/scripts/reactibot

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git

COPY package.json ./
RUN npm install
COPY . .
Expand Down

0 comments on commit 78ad0e6

Please sign in to comment.