Skip to content

Commit 4caf066

Browse files
committed
Use "typical" style for workflows
1 parent a0f301d commit 4caf066

2 files changed

Lines changed: 21 additions & 39 deletions

File tree

.github/workflows/check-build.yml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,73 +20,60 @@ jobs:
2020
ports:
2121
- 5000:5000
2222
steps:
23-
-
24-
name: Set up QEMU
23+
- name: Set up QEMU
2524
uses: docker/setup-qemu-action@v2
26-
-
27-
name: Set up Docker Buildx
25+
- name: Set up Docker Buildx
2826
uses: docker/setup-buildx-action@v2
2927
with:
3028
driver-opts: network=host
31-
-
32-
name: Cache Docker layers
29+
- name: Cache Docker layers
3330
uses: actions/cache@v3
3431
with:
3532
path: /tmp/.buildx-cache
3633
key: ${{ runner.os }}-buildx
3734
- name: Set up Git repository
3835
uses: actions/checkout@v4
39-
-
40-
name: Build
36+
- name: Build
4137
id: docker_build
4238
uses: docker/build-push-action@v4
4339
with:
4440
push: true
4541
tags: localhost:5000/name/app:latest
46-
-
47-
name: lacheck
42+
- name: lacheck
4843
working-directory: test
4944
run: |
5045
docker run -v $(pwd):/workdir localhost:5000/name/app:latest lacheck minimal-article.tex
51-
-
52-
name: chktex
46+
- name: chktex
5347
working-directory: test
5448
run: |
5549
docker run -v $(pwd):/workdir localhost:5000/name/app:latest chktex minimal-article.tex
56-
-
57-
name: latexindent
50+
- name: latexindent
5851
working-directory: test
5952
run: |
6053
docker run -v $(pwd):/workdir localhost:5000/name/app:latest latexindent minimal-article.tex
61-
-
62-
name: minimal-article.tex
54+
- name: minimal-article.tex
6355
working-directory: test
6456
run: |
6557
docker run -v $(pwd):/workdir localhost:5000/name/app:latest pdflatex minimal-article.tex
66-
-
67-
name: minimal-codehigh.tex
58+
- name: minimal-codehigh.tex
6859
working-directory: test
6960
run: |
7061
docker run -v $(pwd):/workdir localhost:5000/name/app:latest lualatex minimal-codehigh.tex
71-
-
72-
name: minimal-minted.tex
62+
- name: minimal-minted.tex
7363
working-directory: test
7464
run: |
7565
docker run -v $(pwd):/workdir localhost:5000/name/app:latest pdflatex --shell-escape minimal-minted.tex
76-
-
77-
name: minimal-plantuml.tex
66+
- name: minimal-plantuml.tex
7867
working-directory: test
7968
run: |
8069
docker run -v $(pwd):/workdir localhost:5000/name/app:latest lualatex --shell-escape minimal-plantuml.tex
81-
-
82-
name: minimal-selnolig.tex
70+
- name: minimal-selnolig.tex
8371
working-directory: test
8472
run: |
8573
docker run -v $(pwd):/workdir localhost:5000/name/app:latest lualatex minimal-selnolig.tex
86-
-
87-
# Test compilation of a .tex file referencing a .tex file in a parent directory.
88-
# Issue: https://github.com/dante-ev/docker-texlive/issues/39
89-
name: current-file.tex
74+
# Test compilation of a .tex file referencing a .tex file in a parent directory.
75+
# Issue: https://github.com/dante-ev/docker-texlive/issues/39
76+
- name: current-file.tex
9077
working-directory: test/subdir1
9178
run: |
9279
docker run -v $(pwd)/..:/workdir localhost:5000/name/app:latest /bin/bash -c "cd subdir1 && lualatex current-file.tex"

.github/workflows/publish.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ jobs:
2323
build:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: gautamkrishnar/keepalive-workflow@v2
27-
-
28-
name: Docker meta
26+
- name: Docker meta
2927
id: meta
3028
uses: docker/metadata-action@v4
3129
with:
@@ -36,28 +34,25 @@ jobs:
3634
type=schedule,pattern={{date 'YYYY-MM-DD'}}
3735
type=ref,event=tag
3836
type=edge,branch=main
39-
-
40-
name: Login to DockerHub
37+
- name: Login to DockerHub
4138
uses: docker/login-action@v2
4239
with:
4340
username: ${{ secrets.DOCKER_USERNAME }}
4441
password: ${{ secrets.DOCKER_PASSWORD }}
45-
-
46-
name: Login to GitHub Container Registry
42+
- name: Login to GitHub Container Registry
4743
uses: docker/login-action@v2
4844
with:
4945
registry: ghcr.io
5046
username: koppor
5147
password: ${{ secrets.CR_PAT }}
52-
-
53-
name: Build and push
48+
- name: Build and push
5449
id: docker_build
5550
uses: docker/build-push-action@v4
5651
with:
5752
push: true
5853
platforms: linux/amd64, linux/arm64
5954
tags: ${{ steps.meta.outputs.tags }}
6055
labels: ${{ steps.meta.outputs.labels }}
61-
-
62-
name: Image digest
56+
- name: Image digest
6357
run: echo ${{ steps.docker_build.outputs.digest }}
58+
- uses: gautamkrishnar/keepalive-workflow@v2

0 commit comments

Comments
 (0)