Skip to content

Overleaf Pro Image(Aliyun) #1347

Overleaf Pro Image(Aliyun)

Overleaf Pro Image(Aliyun) #1347

name: Overleaf Pro Image(Aliyun)
on:
workflow_dispatch:
schedule:
- cron: '0 */3 * * *'
env:
DOCKER_REGISTRY: registry.cn-hongkong.aliyuncs.com
IMAGE_NAME: ayaka-notes/overleaf
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@main
- name: "Checkout Internal Overleaf Action"
uses: actions/checkout@main
with:
repository: ayaka-notes/overleaf-internal
ref: dev
token: ${{secrets.ORGTOKEN}}
path: './overleaf'
- name: "Make CE Docker Image"
run: |
cd ./overleaf/server-ce
make
docker tag sharelatex/sharelatex:latest ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: "Login to GitHub Container Registry"
uses: docker/[email protected]
with:
registry: ${{env.DOCKER_REGISTRY}}
username: ${{github.actor}}
password: ${{secrets.ALIYUN_DOCKER_TOKEN}}
- name: Build and push Docker image
run: |
docker push ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:latest