mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
feat: Add github secret org name (#1017)
This commit is contained in:
parent
553d08b353
commit
fb3f2084f3
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@ -147,10 +147,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Set Lower Case to owner and repository
|
- name: Set Lower Case to owner and repository
|
||||||
run: |
|
run: |
|
||||||
|
echo "ORG_LC=${ORG,,}" >> ${GITHUB_ENV}
|
||||||
echo "OWNER_LC=${OWNER,,}" >> ${GITHUB_ENV}
|
echo "OWNER_LC=${OWNER,,}" >> ${GITHUB_ENV}
|
||||||
echo "REPO_LC=${NAME,,}" >> ${GITHUB_ENV}
|
echo "REPO_LC=${NAME,,}" >> ${GITHUB_ENV}
|
||||||
echo "OWNER_REPO_LC=${REPO,,}" >> ${GITHUB_ENV}
|
echo "OWNER_REPO_LC=${REPO,,}" >> ${GITHUB_ENV}
|
||||||
env:
|
env:
|
||||||
|
# to docker image namespace
|
||||||
|
ORG: '${{ secrets.DOCKERHUB_ORG }}'
|
||||||
OWNER: '${{ github.repository_owner }}'
|
OWNER: '${{ github.repository_owner }}'
|
||||||
NAME: '${{ github.event.repository.name }}'
|
NAME: '${{ github.event.repository.name }}'
|
||||||
REPO: '${{ github.repository }}'
|
REPO: '${{ github.repository }}'
|
||||||
@ -162,9 +165,9 @@ jobs:
|
|||||||
file: ./build/Dockerfile.prod
|
file: ./build/Dockerfile.prod
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.OWNER_LC }}/${{ env.REPO_LC }}:latest
|
${{ env.ORG_LC }}/${{ env.REPO_LC }}:latest
|
||||||
${{ env.OWNER_LC }}/${{ env.REPO_LC }}:${{ github.sha }}
|
${{ env.ORG_LC }}/${{ env.REPO_LC }}:${{ github.sha }}
|
||||||
${{ env.OWNER_LC }}/${{ env.REPO_LC }}:${{ github.event.release.tag_name }}
|
${{ env.ORG_LC }}/${{ env.REPO_LC }}:${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user