Skip to content

Fix typo in overview.mdx (#24) #433

Fix typo in overview.mdx (#24)

Fix typo in overview.mdx (#24) #433

Workflow file for this run

name: Docker
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=sha
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Notify Slack
if: always() && github.event_name == 'push'
uses: slackapi/slack-github-action@v2.1.0
with:
webhook: ${{ secrets.GH_ACTIONS_DOCKER_BUILD_SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ job.status == 'success' && ':white_check_mark: Docker build *passed*' || ':x: Docker build *failed*' }}"
}
},
{
"type": "section",
"fields": [
{ "type": "mrkdwn", "text": "*Repo:*\n${{ github.repository }}" },
{ "type": "mrkdwn", "text": "*Branch:*\n${{ github.ref_name }}" },
{ "type": "mrkdwn", "text": "*Commit:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>" },
{ "type": "mrkdwn", "text": "*Author:*\n${{ github.actor }}" },
{ "type": "mrkdwn", "text": "*Image:*\n${{ steps.meta.outputs.tags }}" },
{ "type": "mrkdwn", "text": "*Workflow:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>" }
]
}
]
}