Skip to content

Commit

Permalink
az
Browse files Browse the repository at this point in the history
  • Loading branch information
eedorenko committed Jul 10, 2023
1 parent 678cb58 commit dac74dd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/az-vote-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
env:
SRC_FOLDER: azure-vote
AZ_ACR_NAME: gitopsflowacr
IMAGE_REPO_NAME: azvote
steps:
- name: Checkout
uses: actions/[email protected]
Expand All @@ -26,8 +26,9 @@ jobs:
env:
SOURCE_LOCATION: src/azure-vote-front
DOCKER_FILE: Dockerfile
REPOSITORY: azvote/azure-vote-front
TASKNAME: FRONTEND_IMAGE
IMAGE_NAME: azure-vote-front
TASKNAME: FRONTEND_IMAGE
AZ_ACR_NAME: ${{ secrets.AZ_ACR_NAME }}
uses: Azure/[email protected]
with:
inlineScript: |
Expand All @@ -36,15 +37,16 @@ jobs:
-g $GITHUB_WORKSPACE \
-s $SOURCE_LOCATION \
-u $AZ_ACR_NAME \
-r $REPOSITORY \
-r $IMAGE_REPO_NAME/$IMAGE_NAME \
-t $TASKNAME \
-d $DOCKER_FILE
- name: Create Backend Image Tags
env:
SOURCE_LOCATION: src/azure-vote-back
DOCKER_FILE: Dockerfile
REPOSITORY: azvote/azure-vote-back
TASKNAME: BACKEND_IMAGE
IMAGE_NAME: azure-vote-back
TASKNAME: BACKEND_IMAGE
AZ_ACR_NAME: ${{ secrets.AZ_ACR_NAME }}
uses: Azure/[email protected]
with:
inlineScript: |
Expand All @@ -53,7 +55,7 @@ jobs:
-g $GITHUB_WORKSPACE \
-s $SOURCE_LOCATION \
-u $AZ_ACR_NAME \
-r $REPOSITORY \
-r $IMAGE_REPO_NAME/$IMAGE_NAME \
-t $TASKNAME \
-d $DOCKER_FILE
- name: Upload Image Tags
Expand Down Expand Up @@ -106,7 +108,7 @@ jobs:
TARGET_NAMESPACE: ${{ secrets.TARGET_NAMESPACE }}
VOTE_APP_TITLE: ${{ secrets.VOTE_APP_TITLE }}
DEMO_APP_URL: ${{ secrets.DEMO_APP_URL }}
AZURE_VOTE_IMAGE_REPO: ${{ secrets.AZURE_VOTE_IMAGE_REPO }}
AZURE_VOTE_IMAGE_REPO: ${{ secrets.AZ_ACR_NAME }}/.azurecr.io/${{ env.IMAGE_REPO_NAME }}
SYSTEM_LABEL: ${{ secrets.SYSTEM_LABEL }}
- name: Create PR
run: |
Expand Down

0 comments on commit dac74dd

Please sign in to comment.