Skip to content

Pin openai version (#22) #7

Pin openai version (#22)

Pin openai version (#22) #7

name: Build and Push Container Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} # or use your PAT: secrets.GHCR_PAT
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/redisventures/arxivchatguru:${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }}