Merge pull request #7478 from GuoLiBin6/automated-cherry-pick-of-#747… #5107
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: FE CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
#node-version: [10.x, 12.x] | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: yarn install and build | |
run: | | |
yarn install | |
./scripts/setup.sh | |
yarn run build | |
#yarn run test | |
env: | |
CI: true | |
- name: Publish to Registry | |
uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: registry.cn-beijing.aliyuncs.com/yunionio/web | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
registry: registry.cn-beijing.aliyuncs.com | |
snapshot: true | |
dockerfile: Dockerfile |