wikijs-fork/.github/workflows/dockerimage.yml

29 lines
572 B
YAML
Raw Normal View History

2019-08-18 21:58:40 +00:00
name: Docker Image CI
on:
push:
2019-08-19 00:07:00 +00:00
branches:
- 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