From adeacbb57efd9b6751acde57021c71fda27c6671 Mon Sep 17 00:00:00 2001 From: Matthew Lopez <73856503+MatthewL246@users.noreply.github.com> Date: Sat, 16 Dec 2023 18:38:11 -0500 Subject: [PATCH] Reformat YAML --- .github/dependabot.yml | 12 +++---- .github/workflows/docker.yml | 70 +++++++++++++++++++----------------- 2 files changed, 43 insertions(+), 39 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1c4864e..672fc27 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,8 @@ version: 2 updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: daily - assignees: - - MatthewL246 + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily + assignees: + - MatthewL246 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 396f867..aa527af 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,43 +1,47 @@ name: Build and Publish Docker Image on: - push: - pull_request: - workflow_dispatch: + push: + pull_request: + workflow_dispatch: jobs: - build-publish: - runs-on: ubuntu-latest + build-publish: + runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 + steps: + - name: Checkout repository + uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - - name: Log into the GitHub container registry - if: ${{ github.event != 'pull_request' && github.ref == 'refs/heads/main' }} - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: Log into the GitHub container registry + if: + ${{ github.event != 'pull_request' && github.ref == + 'refs/heads/main' }} + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }} - flavor: latest=true + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }} + flavor: latest=true - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@v5 - with: - context: . - push: ${{ github.event != 'pull_request' && github.ref == 'refs/heads/main' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@v5 + with: + context: . + push: + ${{ github.event != 'pull_request' && github.ref == + 'refs/heads/main' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max