Easy tags are now the scratch ones, also latest is now from scratch
This commit is contained in:
parent
959266fab8
commit
dcfe03e181
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- github-actions
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 18 * * *
|
- cron: 0 18 * * *
|
||||||
|
|
||||||
@ -13,6 +14,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
scheme: [infraonly, minimal, basic, small, context, gust, medium, tetex, full]
|
scheme: [infraonly, minimal, basic, small, context, gust, medium, tetex, full]
|
||||||
|
include:
|
||||||
|
- scheme: full
|
||||||
|
isLatest: true
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -20,13 +24,24 @@ jobs:
|
|||||||
- name: Login to Dockerhub
|
- name: Login to Dockerhub
|
||||||
run: echo ${{secrets.DOCKERHUB_PASSWORD}} | docker login -u ${{secrets.DOCKERHUB_USER}} --password-stdin
|
run: echo ${{secrets.DOCKERHUB_PASSWORD}} | docker login -u ${{secrets.DOCKERHUB_USER}} --password-stdin
|
||||||
|
|
||||||
- name: Build ${{matrix.scheme}} from scratch
|
- name: Build ${{matrix.scheme}}-scratch
|
||||||
working-directory: ./scratch
|
working-directory: ./scratch
|
||||||
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-scratch --build-arg SCHEME=${{matrix.scheme}}.
|
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-scratch --build-arg SCHEME=${{matrix.scheme}}.
|
||||||
|
|
||||||
- name: Upload ${{matrix.scheme}}-scratch image
|
- name: Upload ${{matrix.scheme}}-scratch image
|
||||||
run: docker push ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-scratch
|
run: docker push ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-scratch
|
||||||
|
|
||||||
|
- name: Upload ${{matrix.scheme}}
|
||||||
|
run: |
|
||||||
|
docker tag ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-scratch ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}
|
||||||
|
docker push ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}
|
||||||
|
|
||||||
|
- name: Tag as latest
|
||||||
|
if: matrix.isLatest
|
||||||
|
run: |
|
||||||
|
docker tag ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-incremental ${{secrets.DOCKERHUB_USER}}/latex:latest
|
||||||
|
docker push ${{secrets.DOCKERHUB_USER}}/latex:latest
|
||||||
|
|
||||||
build-incremental:
|
build-incremental:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-scratch]
|
needs: [build-scratch]
|
||||||
@ -52,7 +67,6 @@ jobs:
|
|||||||
source: medium
|
source: medium
|
||||||
- scheme: full
|
- scheme: full
|
||||||
source: tetex
|
source: tetex
|
||||||
isLatest: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -67,14 +81,4 @@ jobs:
|
|||||||
- name: Upload ${{matrix.scheme}}-incremental
|
- name: Upload ${{matrix.scheme}}-incremental
|
||||||
run: docker push ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-incremental
|
run: docker push ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-incremental
|
||||||
|
|
||||||
- name: Upload ${{matrix.scheme}}
|
|
||||||
run: |
|
|
||||||
docker tag ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-incremental ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}
|
|
||||||
docker push ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}
|
|
||||||
|
|
||||||
- name: Tag as latest
|
|
||||||
if: matrix.isLatest
|
|
||||||
run: |
|
|
||||||
docker tag ${{secrets.DOCKERHUB_USER}}/latex:${{matrix.scheme}}-incremental ${{secrets.DOCKERHUB_USER}}/latex:latest
|
|
||||||
docker push ${{secrets.DOCKERHUB_USER}}/latex:latest
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user