Skip to content

Commit

Permalink
feat(.github/workflows/ci): env USE_GH_REGISTRY
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Jun 30, 2024
1 parent 1ca0856 commit 2352e8d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@ env:
CI_BRANCH: ${{ vars.CI_BRANCH }}
IMAGE_TAG: ${{ vars.IMAGE_TAG }}

REGISTRY_URL: ghcr.io
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: ${{ github.repository }}

# REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
# REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
# REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
# IMAGE_NAME: ${{ vars.IMAGE_NAME }}
REGISTRY_URL: ${{ secrets.USE_GH_REGISTRY == 'true' && 'ghcr.io' || secrets.REGISTRY_URL }}
REGISTRY_USERNAME: ${{ secrets.USE_GH_REGISTRY == 'true' && github.actor || secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.USE_GH_REGISTRY == 'true' && secrets.GITHUB_TOKEN || secrets.REGISTRY_TOKEN }}
IMAGE_NAME: ${{ secrets.USE_GH_REGISTRY == 'true' && github.repository || vars.IMAGE_NAME }}

DEPLOY_DISPATCH_TOKEN: ${{ secrets.DEPLOY_DISPATCH_TOKEN }}

Expand Down

0 comments on commit 2352e8d

Please sign in to comment.