This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
Updated to llm-rs & Bugfix for Wiki-Importer #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Push API-Container | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: 'Get Previous tag' | |
id: previoustag | |
uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
with: | |
fallback: DEBUG # Optional fallback tag to use when no tag can be found | |
- name: Log in to the Container registry | |
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: 'Build and push Docker image' | |
env: | |
DOCKER_BUILDKIT: 1 | |
run: | | |
docker buildx build --platform linux/amd64 ./src --file ./src/API.Dockerfile --tag ghcr.io/llukas22/retrieval-qa-api:latest --tag ghcr.io/llukas22/retrieval-qa-api:${{ steps.previoustag.outputs.tag }} | |
docker push --all-tags ghcr.io/llukas22/retrieval-qa-api |