CI: build and publish docker images
This commit is contained in:
parent
eacb1b108a
commit
ccaa50bfae
1 changed files with 10 additions and 1 deletions
11
.github/workflows/linux.yml
vendored
11
.github/workflows/linux.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue