Skip to content

Add github action to push to DockerHub #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ indent_size = 4
[**.html]
indent_style = space
indent_size = 4

[**.yml]
indent_style = space
indent_size = 2
18 changes: 18 additions & 0 deletions .github/workflows/publish-docker-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish latest image to DockerHub

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: getmeili/docs-scraper
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
19 changes: 19 additions & 0 deletions .github/workflows/publish-docker-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish tagged image to DockerHub

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: getmeili/docs-scraper
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_names: true
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:18.04

WORKDIR /docs-scraper

COPY . .

ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8

RUN apt-get update -y \
&& apt-get install -y python3-pip
RUN pip3 install pipenv
RUN pipenv install --python 3.6
36 changes: 0 additions & 36 deletions config/config.json

This file was deleted.

40 changes: 0 additions & 40 deletions config/config_original.json

This file was deleted.