fix(api): ssh cli #4
Workflow file for this run
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: Docker Image CI | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build-api: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build API | |
run: | | |
docker login --username=${{ secrets.ALI_ACCOUNT }} --password=${{ secrets.ALI_PASSWORD }} registry.cn-hangzhou.aliyuncs.com | |
cd backend | |
docker build . --file Dockerfile --tag registry.cn-hangzhou.aliyuncs.com/veops/oneterm-api:latest | |
docker push registry.cn-hangzhou.aliyuncs.com/veops/oneterm-api:latest | |
docker build . --file Dockerfile --tag registry.cn-hangzhou.aliyuncs.com/veops/oneterm-api:${{github.ref_name}} | |
docker push registry.cn-hangzhou.aliyuncs.com/veops/oneterm-api:${{github.ref_name}} | |
build-ui: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build UI | |
run: | | |
docker login --username=${{ secrets.ALI_ACCOUNT }} --password=${{ secrets.ALI_PASSWORD }} registry.cn-hangzhou.aliyuncs.com | |
cd oneterm-ui | |
docker build . --file Dockerfile --tag registry.cn-hangzhou.aliyuncs.com/veops/oneterm-ui:latest | |
docker push registry.cn-hangzhou.aliyuncs.com/veops/oneterm-ui:latest | |
docker build . --file Dockerfile --tag registry.cn-hangzhou.aliyuncs.com/veops/oneterm-ui:${{github.ref_name}} | |
docker push registry.cn-hangzhou.aliyuncs.com/veops/oneterm-ui:${{github.ref_name}} |