mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
fix: Docker image files. (#1019)
This commit is contained in:
parent
fb3f2084f3
commit
cbca721eaa
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@ -98,13 +98,9 @@ jobs:
|
||||
run: |
|
||||
echo "OWNER_LC=${OWNER,,}" >> ${GITHUB_ENV}
|
||||
echo "REPO_LC=${NAME,,}" >> ${GITHUB_ENV}
|
||||
echo "OWNER_REPO_LC=${REPO,,}" >> ${GITHUB_ENV}
|
||||
env:
|
||||
OWNER: '${{ github.repository_owner }}'
|
||||
NAME: '${{ github.event.repository.name }}'
|
||||
REPO: '${{ github.repository }}'
|
||||
|
||||
- run: echo ${{ env }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
@ -147,16 +143,20 @@ jobs:
|
||||
|
||||
- name: Set Lower Case to owner and repository
|
||||
run: |
|
||||
ORG=$OWNER
|
||||
if [ -n "${{ secrets.DOCKERHUB_ORG }}" ]; then
|
||||
echo "Set secret DOCKERHUB_ORG as namespace"
|
||||
ORG=${{ secrets.DOCKERHUB_ORG }}
|
||||
else
|
||||
echo "Set OWNER ($OWNER) as namespace "
|
||||
fi
|
||||
echo "ORG_LC=${ORG,,}" >> ${GITHUB_ENV}
|
||||
echo "OWNER_LC=${OWNER,,}" >> ${GITHUB_ENV}
|
||||
echo "REPO_LC=${NAME,,}" >> ${GITHUB_ENV}
|
||||
echo "OWNER_REPO_LC=${REPO,,}" >> ${GITHUB_ENV}
|
||||
env:
|
||||
# to docker image namespace
|
||||
ORG: '${{ secrets.DOCKERHUB_ORG }}'
|
||||
OWNER: '${{ github.repository_owner }}'
|
||||
NAME: '${{ github.event.repository.name }}'
|
||||
REPO: '${{ github.repository }}'
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
|
@ -9,7 +9,7 @@ ENV API_URL="https://api.erpya.com"
|
||||
|
||||
|
||||
COPY build/start.sh .
|
||||
COPY dist/* /usr/share/nginx/html/
|
||||
COPY dist/ /usr/share/nginx/html/
|
||||
|
||||
|
||||
CMD 'sh' 'start.sh'
|
||||
|
Loading…
x
Reference in New Issue
Block a user