Skip to content

Workflow file for this run

name: Build and Publish Docker Image
on:
release:
types: [published]
permissions:
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the GHCR registry
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push to GHCR (bun)
uses: docker/build-push-action@v5.1.0
with:
platforms: linux/amd64, linux/arm64
push: true
tags: |
ghcr.io/quackscience/copilot-extension-duckdb:latest
ghcr.io/quackscience/copilot-extension-duckdb:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}