Skip to content

creates workflow for building images #1

creates workflow for building images

creates workflow for building images #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'README.md'
- 'LICENSE'
- 'anthropic/**'
- 'rasa/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- 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: Build Docker image
run: |
docker build . -t ghcr.io/${{ github.repository }}/freetalkbot:latest
- name: Push Docker image to GitHub Container Registry
run: |
docker push ghcr.io/${{ github.repository }}/freetalkbot:latest