Skip to content

โœจ Initial commit #1

โœจ Initial commit

โœจ Initial commit #1

Workflow file for this run

---
name: ๐Ÿ‘ทโ€โ™‚๏ธ Build
on:
push:
branches:
- main
tags:
- v*
jobs:
lint:
name: ๐Ÿงน Lint
runs-on: ubuntu-latest
if: github.actor != 'renovate[bot]' && github.actor != 'renovate[bot]'
steps:
- name: ๐Ÿ“ Checkout repository
uses: actions/checkout@v4
- name: ๐Ÿงน Lint
uses: pre-commit/[email protected]
build:
name: ๐Ÿณ Docker Build
runs-on: ubuntu-latest
needs:
- lint
permissions:
contents: read
packages: write
steps:
- name: ๐Ÿ“ Checkout repository
uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: ๐Ÿ”‘ Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: ๐Ÿ“ƒ Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=false
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=pr,prefix=pr-
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
- name: ๐Ÿณ Docker Build & Push
uses: docker/build-push-action@v6
id: docker_build
env:
DOCKER_BUILD_NO_SUMMARY: true
with:
cache-from: type=gha
cache-to: type=gha,mode=max
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
provenance: false
tags: ${{ steps.meta.outputs.tags }}