Skip to content

Commit

Permalink
workflow for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rashadphz committed Jun 1, 2024
1 parent a186917 commit a0c4f88
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_and_push_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# https://github.com/cohere-ai/cohere-toolkit/blob/main/.github/workflows/build_and_push_docker.yml

name: Create and publish single container image

on:
push:
branches:
- main

env:
REGISTRY: ghcr.io
IMAGE_NAME: farfalle

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
file: ./standalone.Dockerfile

0 comments on commit a0c4f88

Please sign in to comment.