Skip to content

Build Vue Images

Build Vue Images #155

Workflow file for this run

name: Build Vue Images
on:
workflow_dispatch:
inputs:
is_test:
description: "Test run"
required: true
type: boolean
default: false
jobs:
Build:
if: ${{ !inputs.is_test }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker.io
uses: docker/login-action@v2
with:
registry: docker.io
username: docworld
password: ${{ secrets.DOCKER_TOKEN }}
- name: Login to Aliyuncs
uses: docker/login-action@v2
with:
registry: registry.cn-beijing.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Copy Tools
run: |
cp -r tools ./gin
shell: bash
- name: Build Vue doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
push: true
tags: |
docworld/vue:latest
docworld/vue:3
registry.cn-beijing.aliyuncs.com/docworld/vue:latest
registry.cn-beijing.aliyuncs.com/docworld/vue:3
- name: Build Vue zh doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
push: true
build-args: |
repoName=vuejs-translations/docs-zh-cn
tags: |
docworld/vue:zh-latest
docworld/vue:zh-3
registry.cn-beijing.aliyuncs.com/docworld/vue:zh-latest
registry.cn-beijing.aliyuncs.com/docworld/vue:zh-3
- name: Build Vue2 doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
file: ./vue/Dockerfile.vue2
push: true
tags: |
docworld/vue:2
registry.cn-beijing.aliyuncs.com/docworld/vue:2
- name: Build Vue2 zh doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
file: ./vue/Dockerfile.vue2
push: true
build-args: |
repoName=vuejs/v2.cn.vuejs.org
tags: |
docworld/vue:zh-2
registry.cn-beijing.aliyuncs.com/docworld/vue:zh-2
test-build:
if: ${{ inputs.is_test }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to docker.io
uses: docker/login-action@v2
with:
registry: docker.io
username: docworld
password: ${{ secrets.DOCKER_TOKEN }}
- name: Login to Aliyuncs
uses: docker/login-action@v2
with:
registry: registry.cn-beijing.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Copy Tools
run: |
cp -r tools ./gin
./tools/install.sh
NODE_PATH=$(npm root --quiet -g) node ./tools/prepare.js vuejs/docs
shell: bash
- name: Build Vue doc
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm64
context: ./vue/
push: true
tags: |
registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue3
# - name: Build Vue zh doc
# uses: docker/[email protected]
# with:
# platforms: linux/amd64,linux/arm64
# context: ./vue/
# push: true
# build-args: |
# repoName=vuejs-translations/docs-zh-cn
# tags: |
# registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue3-zh
# - name: Build Vue2 doc
# uses: docker/[email protected]
# with:
# platforms: linux/amd64,linux/arm64
# context: ./vue/
# file: ./vue/Dockerfile.vue2
# push: true
# tags: registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue2
# - name: Build Vue2 zh doc
# uses: docker/[email protected]
# with:
# platforms: linux/amd64,linux/arm64
# context: ./vue/
# file: ./vue/Dockerfile.vue2
# push: true
# build-args: |
# repoName=vuejs/v2.cn.vuejs.org
# tags: registry.cn-beijing.aliyuncs.com/ikrong/docworld:vue2-zh
UpdateDockerDescription:
if: ${{ !inputs.is_test }}
needs: [Build]
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main
with:
repoName: vue
secrets: inherit