Jelajahi Sumber

style: linting on CI yaml files

Nicolas Duchon 2 tahun lalu
induk
melakukan
02d3a37cfb
3 mengubah file dengan 19 tambahan dan 22 penghapusan
  1. 0 1
      .github/dependabot.yml
  2. 15 17
      .github/workflows/dockerhub.yml
  3. 4 4
      .github/workflows/test.yml

+ 0 - 1
.github/dependabot.yml

@@ -1,6 +1,5 @@
 version: 2
 updates:
-
   # Maintain dependencies for Docker
   - package-ecosystem: "docker"
     directory: "/"

+ 15 - 17
.github/workflows/dockerhub.yml

@@ -3,31 +3,30 @@ name: DockerHub
 on:
   workflow_dispatch:
   schedule:
-    - cron: '0 0 * * 1'
+    - cron: "0 0 * * 1"
   push:
     branches:
       - main
     tags:
-      - '*.*.*'
+      - "*.*.*"
     paths-ignore:
-      - 'test/*'
-      - '.gitignore'
-      - 'docker-compose-separate-containers.yml'
-      - 'docker-compose.yml'
-      - 'LICENSE'
-      - 'Makefile'
-      - '*.md'
+      - "test/*"
+      - ".gitignore"
+      - "docker-compose-separate-containers.yml"
+      - "docker-compose.yml"
+      - "LICENSE"
+      - "Makefile"
+      - "*.md"
 
 jobs:
   multiarch-build-debian:
     runs-on: ubuntu-latest
     steps:
-
       - name: Checkout
         uses: actions/checkout@v2
         with:
           fetch-depth: 0
-      
+
       - name: Retrieve version
         run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
 
@@ -54,11 +53,11 @@ jobs:
         uses: docker/setup-buildx-action@v1
 
       - name: Login to DockerHub
-        uses: docker/login-action@v1 
+        uses: docker/login-action@v1
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
-          
+
       - name: Log in to GitHub Container Registry
         uses: docker/login-action@v1
         with:
@@ -84,12 +83,11 @@ jobs:
   multiarch-build-alpine:
     runs-on: ubuntu-latest
     steps:
-
       - name: Checkout
         uses: actions/checkout@v2
         with:
           fetch-depth: 0
-      
+
       - name: Retrieve version
         run: echo "GIT_DESCRIBE=$(git describe --tags)" >> $GITHUB_ENV
 
@@ -117,11 +115,11 @@ jobs:
         uses: docker/setup-buildx-action@v1
 
       - name: Login to DockerHub
-        uses: docker/login-action@v1 
+        uses: docker/login-action@v1
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}
           password: ${{ secrets.DOCKERHUB_TOKEN }}
-      
+
       - name: Log in to GitHub Container Registry
         uses: docker/login-action@v1
         with:

+ 4 - 4
.github/workflows/test.yml

@@ -4,12 +4,12 @@ on:
   workflow_dispatch:
   push:
     paths-ignore:
-    - 'LICENSE'
-    - '**.md'
+      - "LICENSE"
+      - "**.md"
   pull_request:
     paths-ignore:
-    - 'LICENSE'
-    - '**.md'
+      - "LICENSE"
+      - "**.md"
 
 jobs:
   unit: