Skip to content

docs: add ollama tut (#489) #722

docs: add ollama tut (#489)

docs: add ollama tut (#489) #722

name: Build and push website image
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to Aliyun Container Registry
uses: docker/login-action@v3
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Docker build and push
id: docker_build
uses: docker/build-push-action@v5
with:
file: Dockerfile
push: true
tags: registry.cn-shanghai.aliyuncs.com/bytebase/website
build-args: |
SITE_URL=${{ secrets.SITE_URL }}
ALGOLIA_WEBHOOK_SECRET=${{ secrets.ALGOLIA_WEBHOOK_SECRET }}
ALGOLIA_ADMIN_API_KEY=${{ secrets.ALGOLIA_ADMIN_API_KEY }}
ALGOLIA_INDEX_NAME=${{ secrets.ALGOLIA_INDEX_NAME }}
ALGOLIA_SEARCH_KEY=${{ secrets.ALGOLIA_SEARCH_KEY }}
ALGOLIA_APP_ID=${{ secrets.ALGOLIA_APP_ID }}
MAILCHIMP_API_KEY=${{ secrets.MAILCHIMP_API_KEY }}
MAILCHIMP_AUDIENCE_ID=${{ secrets.MAILCHIMP_AUDIENCE_ID }}
MAILCHIMP_API_SERVER=${{ secrets.MAILCHIMP_API_SERVER }}
- name: Image digest
run: echo "Successfully pushed bytebase/website" ${{ steps.docker_build.outputs.digest }}