Skip to content

feat: wire up all features - auth, drilldown, export, verify, usage b… #13

feat: wire up all features - auth, drilldown, export, verify, usage b…

feat: wire up all features - auth, drilldown, export, verify, usage b… #13

Workflow file for this run

name: Build & Push Docker Image
on:
push:
branches:
- main
- develop
paths:
- 'src/**'
- 'Dockerfile'
- 'pyproject.toml'
- 'requirements.txt'
- '.github/workflows/build.yml'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version
id: version
run: |
VERSION=$(git describe --tags --always --abbrev=7)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=sha,prefix={{branch}}-
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=${{ steps.version.outputs.version }}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Image digest
run: echo "Built image with digest: ${{ steps.docker_build.outputs.digest }}"

Check failure on line 66 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 66