Skip to content

Removed annotations #538

Removed annotations

Removed annotations #538

Workflow file for this run

name: Docker Image CI
on: push
jobs:
build:
runs-on: ubuntu-latest
env:
VIRTUOSO_TRIPLESTORE_PASSWORD: ${{ secrets.QANARY_PIPELINE_VIRTUOSO_PASSWORD }}
CHATGPT_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GPT_REQUEST_AUTH: ${{ secrets.GPT_REQUEST_AUTH }}
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_IMAGE_NAME }}:latest
- name: Replace secrets in env file
uses: WSE-research/[email protected]
- name: Docker Login
if: startsWith(github.ref, 'refs/tags/')
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Tag latest docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker tag ${{ secrets.DOCKER_IMAGE_NAME }}:latest wseresearch/${{ secrets.DOCKER_IMAGE_NAME }}:latest
- name: Tag docker image version
if: startsWith(github.ref, 'refs/tags/')
run: docker tag ${{ secrets.DOCKER_IMAGE_NAME }}:latest "wseresearch/${{ secrets.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}"
- name: Push latest docker image
if: startsWith(github.ref, 'refs/tags/')
run: docker push wseresearch/${{ secrets.DOCKER_IMAGE_NAME }}:latest
- name: Push docker image version
if: startsWith(github.ref, 'refs/tags/')
run: docker push "wseresearch/${{ secrets.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}"
- name: Init update
if: startsWith(github.ref, 'refs/tags/')
uses: WSE-research/[email protected]
with:
updater_host: ${{ secrets.UPDATER_HOST }}
api_key: ${{ secrets.API_KEY }}