Skip to content

Commit

Permalink
Continuous delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarLiew committed Oct 3, 2024
1 parent f0ecde4 commit 7dce511
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and push image

on:
push:
branches:
- main

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Docker login
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u USERNAME --password-stdin

# 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

0 comments on commit 7dce511

Please sign in to comment.