Skip to content

feat(multi-org): add per-org schemas and 1.1.0 release #6

feat(multi-org): add per-org schemas and 1.1.0 release

feat(multi-org): add per-org schemas and 1.1.0 release #6

Workflow file for this run

name: Publish Docker image
on:
push:
branches: [main]
tags: ['v*']
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/ssheppdev/sfetch
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
- uses: docker/build-push-action@v5
with:
context: .
file: docker/Dockerfile.api
push: true
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max