Add all stages to build all tags

This commit is contained in:
Marcel Schwarz 2020-03-28 19:06:24 +01:00
parent f76a5a1431
commit 66a01cc0ea

View File

@ -12,7 +12,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
create-infraonly: build-infraonly:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@ -26,9 +26,9 @@ jobs:
- name: Upload infraonly image - name: Upload infraonly image
run: docker push ${{secrets.DOCKERHUB_USER}}/latex:infraonly run: docker push ${{secrets.DOCKERHUB_USER}}/latex:infraonly
create-minimal: build-incremental:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [create-infraonly] needs: [build-infraonly]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -39,5 +39,41 @@ jobs:
working-directory: ./ctan working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:minimal --build-arg SOURCE=infraonly --build-arg SCHEME=minimal . run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:minimal --build-arg SOURCE=infraonly --build-arg SCHEME=minimal .
- name: Upload minimal image - name: Build basic
run: docker push ${{secrets.DOCKERHUB_USER}}/latex:minimal working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:basic --build-arg SOURCE=minimal --build-arg SCHEME=basic .
- name: Build small
working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:small --build-arg SOURCE=basic --build-arg SCHEME=small .
- name: Build context
working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:context --build-arg SOURCE=small --build-arg SCHEME=context .
- name: Build gust
working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:gust --build-arg SOURCE=context --build-arg SCHEME=gust .
- name: Build medium
working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:medium --build-arg SOURCE=gust --build-arg SCHEME=medium .
- name: Build tetex
working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:tetex --build-arg SOURCE=medium --build-arg SCHEME=tetex .
- name: Build full
working-directory: ./ctan
run: docker build -t ${{secrets.DOCKERHUB_USER}}/latex:full --build-arg SOURCE=tetex --build-arg SCHEME=full .
- name: Upload images
run: |
docker push ${{secrets.DOCKERHUB_USER}}/latex:minimal
docker push ${{secrets.DOCKERHUB_USER}}/latex:basic
docker push ${{secrets.DOCKERHUB_USER}}/latex:small
docker push ${{secrets.DOCKERHUB_USER}}/latex:context
docker push ${{secrets.DOCKERHUB_USER}}/latex:gust
docker push ${{secrets.DOCKERHUB_USER}}/latex:medium
docker push ${{secrets.DOCKERHUB_USER}}/latex:tetex
docker push ${{secrets.DOCKERHUB_USER}}/latex:full