Skip to content

Commit fa1e6b1

Browse files
authored
Merge pull request #9 from meilisearch/docker
Add github action to push to DockerHub
2 parents 2ebadbc + 9f8e3d0 commit fa1e6b1

File tree

6 files changed

+54
-76
lines changed

6 files changed

+54
-76
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ indent_size = 4
1616
[**.html]
1717
indent_style = space
1818
indent_size = 4
19+
20+
[**.yml]
21+
indent_style = space
22+
indent_size = 2
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish latest image to DockerHub
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Publish to Registry
14+
uses: elgohr/Publish-Docker-Github-Action@master
15+
with:
16+
name: getmeili/docs-scraper
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_PASSWORD }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish tagged image to DockerHub
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Publish to Registry
14+
uses: elgohr/Publish-Docker-Github-Action@master
15+
with:
16+
name: getmeili/docs-scraper
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_PASSWORD }}
19+
tag_names: true

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu:18.04
2+
3+
WORKDIR /docs-scraper
4+
5+
COPY . .
6+
7+
ENV LC_ALL C.UTF-8
8+
ENV LANG C.UTF-8
9+
10+
RUN apt-get update -y \
11+
&& apt-get install -y python3-pip
12+
RUN pip3 install pipenv
13+
RUN pipenv install --python 3.6

config/config.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

config/config_original.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)