Add full matrix and activate upload, activate scheduled run

This commit is contained in:
Marcel Schwarz 2020-03-29 03:51:14 +02:00
parent 1991170c60
commit 2689630b7a

View File

@ -5,6 +5,8 @@ on:
branches: branches:
- master - master
- github-actions - github-actions
schedule:
- cron: 0 18 * * *
jobs: jobs:
build-infraonly: build-infraonly:
@ -19,22 +21,35 @@ jobs:
working-directory: ./ctan working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:infraonly -f Dockerfile.infraonly . run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:infraonly -f Dockerfile.infraonly .
#- name: Upload infraonly image - name: Upload infraonly image
# run: docker push ${{secrets.DOCKERHUB_USER}}/latex:infraonly run: docker push ${{secrets.DOCKERHUB_USER}}/latex:infraonly
build-incremental: build-incremental:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build-infraonly] needs: [build-infraonly]
strategy: strategy:
max-parallel: 1
matrix: matrix:
scheme : [minimal, basic] #, small, context, gust, medium, tetex, full] scheme : [minimal, basic, small, context, gust, medium, tetex, full]
include: include:
- scheme: minimal - scheme: minimal
source: infraonly source: infraonly
- scheme: basic - scheme: basic
source: minimal source: minimal
fail-fast: true - scheme: small
max-parallel: 1 source: basic
- scheme: context
source: small
- scheme: gust
source: context
- scheme: medium
source: gust
- scheme: tetex
source: medium
- scheme: full
source: tetex
isLatest: true
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -45,11 +60,11 @@ jobs:
working-directory: ./ctan working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}} --build-arg SOURCE=${{matrix.source}} --build-arg SCHEME=${{matrix.scheme}} . run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}} --build-arg SOURCE=${{matrix.source}} --build-arg SCHEME=${{matrix.scheme}} .
#- name: Upload ${{ matrix.scheme }} - name: Upload ${{ matrix.scheme }}
# run: docker push ${{secrets.DOCKERHUB_USER}}/latex:minimal run: docker push ${{secrets.DOCKERHUB_USER}}/latex:minimal
- name: Tag as latest - name: Tag as latest
if: matrix.isLatest if: matrix.isLatest
run: | run: |
docker tag ${{secrets.DOCKERHUB_USER}}/latex:full ${{secrets.DOCKERHUB_USER}}/latex:latest docker tag ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}} ${{secrets.DOCKERHUB_USER}}/latex:latest
docker push ${{secrets.DOCKERHUB_USER}}/latex:latest docker push ${{secrets.DOCKERHUB_USER}}/latex:latest