Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
morya committed Apr 28, 2024
1 parent ca2713b commit d98734e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VUE_APP_URL=/api
VUE_APP_GO_MEEDU_URL=
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VUE_APP_URL=
VUE_APP_URL=/api
VUE_APP_GO_MEEDU_URL=
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ jobs:
echo ${{ github.repository }}:${{github.REF_NAME}}-${{github.run_id}}
echo ${{ github.ACTOR }}
- run: echo 11 env.DOCKER_IMAGE ${{env.DOCKER_IMAGE}}
- run: echo 22 DOCKER_IMAGE ${DOCKER_IMAGE}
- run: echo 333 DOCKER_IMAGE $DOCKER_IMAGE
## 虽然都能工作,但是
# - run: echo 11 env.DOCKER_IMAGE ${{env.DOCKER_IMAGE}}
# - run: echo 22 DOCKER_IMAGE ${DOCKER_IMAGE}
# - run: echo 333 DOCKER_IMAGE $DOCKER_IMAGE

- name: build and push docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
# tags: ${DOCKER_IMAGE}:${{github.REF_NAME}}-${{github.run_id}}
tags: ${{env.DOCKER_IMAGE}}:${{github.REF_NAME}}-${{github.run_id}}
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
publicPath: '',
publicPath: '/pc',
productionSourceMap: false,
assetsDir: 'static',
devServer: {
Expand Down

0 comments on commit d98734e

Please sign in to comment.