1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 01:38:15 +00:00

style: linting on CI yaml files

This commit is contained in:
Nicolas Duchon 2022-12-03 14:30:40 +01:00
parent 75c7b1399b
commit 02d3a37cfb
No known key found for this signature in database
GPG Key ID: EA3151C66A4D79E7
3 changed files with 19 additions and 22 deletions

View File

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

View File

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

View File

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