1
0
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:
Edwin Betancourt 2021-08-05 21:50:48 -04:00 committed by GitHub
parent fb3f2084f3
commit cbca721eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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'