2019-08-18 21:58:40 +00:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2019-08-19 00:07:00 +00:00
|
|
|
branches:
|
2019-08-25 18:28:45 +00:00
|
|
|
- master2
|
2019-08-18 21:58:40 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
timeout-minutes: 30
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Build the Docker image
|
|
|
|
run: docker build . --file dev/build/Dockerfile -t requarks/wiki:dev
|
2019-08-19 00:07:00 +00:00
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Push to Docker Hub
|
|
|
|
run: docker push requarks/wiki:dev
|
|
|
|
|
|
|
|
- name: Logout from Docker Hub
|
|
|
|
run: docker logout
|