Skip to content

Commit

Permalink
feat: Add github secret org name (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Aug 5, 2021
1 parent 553d08b commit fb3f208
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,13 @@ jobs:

- name: Set Lower Case to owner and repository
run: |
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 }}'
Expand All @@ -162,9 +165,9 @@ jobs:
file: ./build/Dockerfile.prod
push: true
tags: |
${{ env.OWNER_LC }}/${{ env.REPO_LC }}:latest
${{ env.OWNER_LC }}/${{ env.REPO_LC }}:${{ github.sha }}
${{ env.OWNER_LC }}/${{ env.REPO_LC }}:${{ github.event.release.tag_name }}
${{ env.ORG_LC }}/${{ env.REPO_LC }}:latest
${{ env.ORG_LC }}/${{ env.REPO_LC }}:${{ github.sha }}
${{ env.ORG_LC }}/${{ env.REPO_LC }}:${{ github.event.release.tag_name }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down

0 comments on commit fb3f208

Please sign in to comment.