Skip to content

Commit 8308306

Browse files
committed
style: linting on CI yaml files
1 parent 58a62e2 commit 8308306

File tree

4 files changed

+36
-37
lines changed

4 files changed

+36
-37
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
version: 2
22
updates:
3-
43
# Maintain dependencies for Go modules
54
- package-ecosystem: "gomod"
65
directory: "/"

.github/workflows/assets.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ name: Release assets
33
on:
44
push:
55
tags:
6-
- '*.*.*'
6+
- "*.*.*"
77

88
jobs:
99
assets:
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
1515
with:
1616
fetch-depth: 1
17-
17+
1818
- uses: actions/setup-go@v3
1919
with:
20-
go-version: '1.18'
21-
20+
go-version: "1.18"
21+
2222
- name: Build release assets
2323
run: make release
24-
24+
2525
- name: Upload release assets
2626
uses: alexellis/[email protected]
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
with:
3030
asset_paths: '["./docker-gen-*.tar.gz"]'
31-
31+
3232
- name: Cleanup release assets
3333
run: make dist-clean

.github/workflows/dockerhub.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@ name: DockerHub
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 0 * * 1'
6+
- cron: "0 0 * * 1"
77
push:
88
branches:
99
- main
1010
tags:
11-
- '*.*.*'
11+
- "*.*.*"
1212
paths:
13-
- '.dockerignore'
14-
- '.github/workflows/dockerhub.yml'
15-
- 'Dockerfile'
16-
- 'Dockerfile.debian'
17-
- 'go.mod'
18-
- 'go.sum'
19-
- '**.go'
13+
- ".dockerignore"
14+
- ".github/workflows/dockerhub.yml"
15+
- "Dockerfile"
16+
- "Dockerfile.debian"
17+
- "go.mod"
18+
- "go.sum"
19+
- "**.go"
2020

2121
jobs:
2222
multiarch-build:
2323
strategy:
2424
matrix:
2525
base: [alpine, debian]
2626
runs-on: ubuntu-latest
27-
27+
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v2
3131
with:
3232
fetch-depth: 0
33-
33+
3434
- name: Retrieve version
3535
run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
36-
36+
3737
- name: Get Docker tags for Alpine based image
3838
if: ${{ matrix.base == 'alpine' }}
3939
id: docker_meta_alpine
@@ -50,7 +50,7 @@ jobs:
5050
labels: |
5151
org.opencontainers.image.authors=Nicolas Duchon <[email protected]> (@buchdag), Jason Wilder
5252
org.opencontainers.image.version=${{ env.GIT_DESCRIBE }}
53-
53+
5454
- name: Get Docker tags for Debian based image
5555
if: ${{ matrix.base == 'debian' }}
5656
id: docker_meta_debian
@@ -71,23 +71,23 @@ jobs:
7171

7272
- name: Set up QEMU
7373
uses: docker/setup-qemu-action@v2
74-
74+
7575
- name: Set up Docker Buildx
7676
uses: docker/setup-buildx-action@v2
77-
77+
7878
- name: Login to DockerHub
7979
uses: docker/login-action@v2
8080
with:
8181
username: ${{ secrets.DOCKERHUB_USERNAME }}
8282
password: ${{ secrets.DOCKERHUB_TOKEN }}
83-
83+
8484
- name: Log in to GitHub Container Registry
8585
uses: docker/login-action@v2
8686
with:
8787
registry: ghcr.io
8888
username: ${{ github.actor }}
8989
password: ${{ secrets.GITHUB_TOKEN }}
90-
90+
9191
- name: Build and push the Alpine based image
9292
if: ${{ matrix.base == 'alpine' }}
9393
id: docker_build_alpine
@@ -99,7 +99,7 @@ jobs:
9999
push: true
100100
tags: ${{ steps.docker_meta_alpine.outputs.tags }}
101101
labels: ${{ steps.docker_meta_alpine.outputs.labels }}
102-
102+
103103
- name: Build and push the Debian based image
104104
if: ${{ matrix.base == 'debian' }}
105105
id: docker_build_debian
@@ -116,7 +116,7 @@ jobs:
116116
- name: Alpine based image digest
117117
if: ${{ matrix.base == 'alpine' }}
118118
run: echo ${{ steps.docker_build_alpine.outputs.digest }}
119-
119+
120120
- name: Debian based image digest
121121
if: ${{ matrix.base == 'debian' }}
122122
run: echo ${{ steps.docker_build_debian.outputs.digest }}

.github/workflows/tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ name: Tests
33
on:
44
push:
55
paths-ignore:
6-
- 'LICENSE'
7-
- '**.md'
8-
- 'examples/*'
9-
- 'templates/*'
6+
- "LICENSE"
7+
- "**.md"
8+
- "examples/*"
9+
- "templates/*"
1010
pull_request:
1111
paths-ignore:
12-
- 'LICENSE'
13-
- '**.md'
14-
- 'examples/*'
15-
- 'templates/*'
12+
- "LICENSE"
13+
- "**.md"
14+
- "examples/*"
15+
- "templates/*"
1616

1717
jobs:
1818
unit:
@@ -23,10 +23,10 @@ jobs:
2323
- uses: actions/checkout@v2
2424
with:
2525
fetch-depth: 0
26-
26+
2727
- uses: actions/setup-go@v3
2828
with:
29-
go-version: '1.18'
29+
go-version: "1.18"
3030

3131
- name: Install dependencies
3232
run: make get-deps

0 commit comments

Comments
 (0)