0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

.github: run prettier over all yml files

This commit is contained in:
Will Norris 2024-05-08 20:52:47 -07:00 committed by Will Norris
parent ef50c1f9a6
commit 2451f30f07
5 changed files with 68 additions and 68 deletions

View file

@ -1,9 +1,9 @@
version: 2 version: 2
updates: updates:
- package-ecosystem: gomod - package-ecosystem: gomod
directory: "/" directory: "/"
schedule: schedule:
interval: monthly interval: monthly
open-pull-requests-limit: 10 open-pull-requests-limit: 10
assignees: assignees:
- willnorris - willnorris

View file

@ -6,7 +6,7 @@ on:
pull_request: pull_request:
branches: [main] branches: [main]
schedule: schedule:
- cron: '0 1 * * 6' # run weekly on Saturdays - cron: "0 1 * * 6" # run weekly on Saturdays
jobs: jobs:
analyze: analyze:
@ -20,19 +20,19 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: ['go'] language: ["go"]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v2 uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2

View file

@ -2,12 +2,12 @@ name: Docker
on: on:
push: push:
branches: [ 'main' ] branches: ["main"]
tags: [ 'v*' ] tags: ["v*"]
pull_request: pull_request:
# Run the workflow on pull_request events to ensure we can still build the image. # Run the workflow on pull_request events to ensure we can still build the image.
# We only publish the image on push events (see if statements in steps below). # We only publish the image on push events (see if statements in steps below).
branches: [ 'main' ] branches: ["main"]
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
@ -22,44 +22,44 @@ jobs:
id-token: write id-token: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Docker buildx - name: Setup Docker buildx
uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1 uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # v2.2.1
with: with:
# use buildx v0.9.1 (https://community.fly.io/t/10171/26) # use buildx v0.9.1 (https://community.fly.io/t/10171/26)
version: v0.9.1 version: v0.9.1
- name: Log into registry ${{ env.REGISTRY }} - name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0 uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
if: github.event_name == 'push' if: github.event_name == 'push'
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata - name: Extract Docker metadata
id: meta id: meta
uses: docker/metadata-action@57396166ad8aefe6098280995947635806a0e6ea # v4.1.1 uses: docker/metadata-action@57396166ad8aefe6098280995947635806a0e6ea # v4.1.1
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image - name: Build and push Docker image
id: build-and-push id: build-and-push
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0 uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0
with: with:
context: . context: .
push: ${{ github.event_name == 'push' }} push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
# Sign the Docker image # Sign the Docker image
- name: Install cosign - name: Install cosign
if: github.event_name == 'push' if: github.event_name == 'push'
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b #v2.8.1 uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b #v2.8.1
- name: Sign the published Docker image - name: Sign the published Docker image
if: github.event_name == 'push' if: github.event_name == 'push'
env: env:
COSIGN_EXPERIMENTAL: "true" COSIGN_EXPERIMENTAL: "true"
run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }} run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}

View file

@ -4,7 +4,7 @@ on:
- main - main
pull_request: pull_request:
branches: branches:
- '**' - "**"
name: linter name: linter
jobs: jobs:
@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-go@v4 - uses: actions/setup-go@v4
with: with:
go-version: stable go-version: stable
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v3
with: with:
version: v1.52.2 version: v1.52.2

View file

@ -4,7 +4,7 @@ on:
- main - main
pull_request: pull_request:
branches: branches:
- '**' - "**"
name: tests name: tests
env: env:
GO111MODULE: on GO111MODULE: on