fix path in Dockerfile #4
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- dev | |
- ci-cd | |
paths-ignore: | |
- 'docs/**' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- uses: actions/checkout@v4 | |
- name: Inject .env.local for deployment address | |
working-directory: spx-gui | |
run: | | |
echo "VITE_PUBLISH_BASE_URL=https://goplus-builder.qiniu.io" > .env.local | |
echo "VITE_API_BASE_URL=https://goplus-builder.qiniu.io/api" >> .env.local | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/builder-spx-gui:latest |