CI: build and publish docker images

This commit is contained in:
Aravinth Manivannan 2021-10-29 20:47:44 +05:30
parent eacb1b108a
commit ccaa50bfae
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 10 additions and 1 deletions

View File

@ -31,6 +31,12 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Login to DockerHub
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/pages'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
@ -44,7 +50,10 @@ jobs:
- name: run tests
run: make test
- name: build and publish docker images
run: make docker-publish
- name: generate documentation
if: matrix.version == 'stable' && (github.repository == 'realaravinth/pages')
run: make doc