Skip to content

Commit

Permalink
Fix docker variables (#115)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
  • Loading branch information
shubham1172 authored May 18, 2023
1 parent 9863459 commit 55f4847
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
APP_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
APP_REGISTRY: ${{ secrets.DOCKER_REGISTRY_URL }}/${{ secrets.DOCKER_REGISTRY_PATH }}
CONFIGURATION: Release
DEV_VERSION_SUFFIX: 99.99.99
DOTNET_SAMPLE_APP_IMAGE_NAME: dotnet-azurefunction
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
if: github.event_name != 'pull_request'
run: |
echo performing docker login
docker login -u ${{ secrets.DOCKER_REGISTRY_ID }} -p ${{ secrets.DOCKER_REGISTRY_PASS }}
docker login ${{ secrets.DOCKER_REGISTRY_URL }} -u ${{ secrets.DOCKER_REGISTRY_ID }} -p ${{ secrets.DOCKER_REGISTRY_PASS }}
echo pushing docker image for ${{ env.DOTNET_SAMPLE_APP_IMAGE_NAME }}
echo image with tag ${{ env.APP_REGISTRY }}/${{ env.DOTNET_SAMPLE_APP_IMAGE_NAME }}:${{ env.REL_VERSION }} will be pushed
docker push ${{ env.APP_REGISTRY }}/${{ env.DOTNET_SAMPLE_APP_IMAGE_NAME }}:${{ env.REL_VERSION }}
Expand Down
7 changes: 4 additions & 3 deletions docs/development/setup-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ A GitHub account.

| Name | Description |
|--|--|
| DOCKER_REGISTRY_ID | Username for Docker registry, required for uploading sample image|
| DOCKER_REGISTRY_PASS | Password for Docker registry, required for uploading sample image|
| DOCKER_REGISTRY | URL to Docker registry, required for uploading sample image |
| DOCKER_REGISTRY_URL | URL of Docker registry, required for logging in to Docker registry, e.g. `myregistry.azurecr.io` |
| DOCKER_REGISTRY_PATH | Path to store Docker images, required for uploading sample image, e.g. `samples/dotnet` |
| DOCKER_REGISTRY_ID | Username for Docker registry, required for uploading sample image |
| DOCKER_REGISTRY_PASS | Password for Docker registry, required for uploading sample image |
| AZCOPY_SPA_APPLICATION_ID | Service principal application ID for AzCopy, required for uploading NuGet packages |
| AZCOPY_SPA_CLIENT_SECRET | Service principal client secret for AzCopy, required for uploading NuGet packages |
| GITHUB_TOKEN | GitHub token, required for creating release |
Expand Down

0 comments on commit 55f4847

Please sign in to comment.