Skip to content

Fix Duplicate Prefix "🤖 AI:" (#15) #5

Fix Duplicate Prefix "🤖 AI:" (#15)

Fix Duplicate Prefix "🤖 AI:" (#15) #5

Workflow file for this run

name: Automated Docker Build and Push
on:
push:
tags:
- 'v*'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
actions: write # Permission to create releases
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Extract tag name
id: tag_name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build and Push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/h0llyw00dzz/gogenai-terminal-chat:${{ env.TAG_NAME }}
ghcr.io/h0llyw00dzz/gogenai-terminal-chat:latest
- name: Clean up Buildx builder
if: always()
run: docker buildx rm