Skip to content

Commit

Permalink
Reformat YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewL246 committed Dec 16, 2023
1 parent 2cc396b commit adeacbb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 39 deletions.
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
70 changes: 37 additions & 33 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit adeacbb

Please sign in to comment.