Skip to content

Commit

Permalink
Build image on push
Browse files Browse the repository at this point in the history
  • Loading branch information
grk committed Sep 20, 2024
1 parent 88cbb9c commit 6da10ec
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-citus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Push Docker Image

on:
push:
branches: [citus]
pull_request:
branches: [citus]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/pgvector-citus

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile.citus
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/pgvector-citus:latest
ghcr.io/${{ github.repository_owner }}/pgvector-citus:${{ github.sha }}

0 comments on commit 6da10ec

Please sign in to comment.