Skip to content

Continuous delivery

Continuous delivery #3

Workflow file for this run

name: Build and push image
on:
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
# Use buildx which can cache docker layers between runs
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/aidotse/reranker-inference:latest,ghcr.io/aidotse/reranker-inference:${{ github.sha }}
cache-from: type=registry,ref=ghcr.io/aidotse/reranker-inference:latest
cache-to: type=inline,mode=min