Implemented push to ACI
This commit is contained in:
parent
845f3c5928
commit
ba173ac76e
34
.github/workflows/ordering-api-deploy.yml
vendored
34
.github/workflows/ordering-api-deploy.yml
vendored
@ -16,9 +16,8 @@ env:
|
|||||||
CHART_ROOT: deploy/k8s/helm
|
CHART_ROOT: deploy/k8s/helm
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-to-k8s:
|
deploy-to-aci:
|
||||||
#if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
if: false
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -28,23 +27,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
|
|
||||||
- uses: azure/aks-set-context@v1
|
- name: 'Deploy to Azure Container Instances'
|
||||||
name: Set AKS context
|
uses: 'azure/aci-deploy@v1'
|
||||||
with:
|
with:
|
||||||
creds: '${{ secrets.AZURE_CREDENTIALS }}'
|
resource-group: aci-test-rg
|
||||||
cluster-name: ${{ secrets.CLUSTER_NAME }}
|
dns-name-label: aci-test-rg${{ github.run_number }}
|
||||||
resource-group: ${{ secrets.RESOURCE_GROUP }}
|
image: ${{ secrets.REGISTRY_LOGIN_SERVER }}/variableclass/ordering.api:latest
|
||||||
|
registry-login-server: ghcr.io
|
||||||
- name: Set branch name as env variable
|
registry-username: ${{ github.repository_owner }}
|
||||||
run: |
|
registry-password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
currentbranch=$(echo ${GITHUB_REF##*/})
|
name: aci-ordering.api-test
|
||||||
echo "running on $currentbranch"
|
location: 'west us'
|
||||||
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Deploy Chart
|
|
||||||
run: |
|
|
||||||
./deploy-chart.sh -c ${{ env.CHART }} --dns aks --aks-name ${{ secrets.CLUSTER_NAME }} --aks-rg ${{ secrets.RESOURCE_GROUP }} -r ${{ secrets.REGISTRY_HOST }} -t $TAG --namespace ${{ env.NAMESPACE }} --acr-connected
|
|
||||||
env:
|
|
||||||
TAG: ${{ env.BRANCH }}
|
|
||||||
working-directory: ${{ env.CHART_ROOT }}
|
|
@ -16,9 +16,8 @@ env:
|
|||||||
CHART_ROOT: deploy/k8s/helm
|
CHART_ROOT: deploy/k8s/helm
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-to-k8s:
|
deploy-to-aci:
|
||||||
#if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
if: false
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -28,23 +27,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
|
|
||||||
- uses: azure/aks-set-context@v1
|
- name: 'Deploy to Azure Container Instances'
|
||||||
name: Set AKS context
|
uses: 'azure/aci-deploy@v1'
|
||||||
with:
|
with:
|
||||||
creds: '${{ secrets.AZURE_CREDENTIALS }}'
|
resource-group: aci-test-rg
|
||||||
cluster-name: ${{ secrets.CLUSTER_NAME }}
|
dns-name-label: aci-test-rg${{ github.run_number }}
|
||||||
resource-group: ${{ secrets.RESOURCE_GROUP }}
|
image: ${{ secrets.REGISTRY_LOGIN_SERVER }}/variableclass/ordering.backgroundtasks:latest
|
||||||
|
registry-login-server: ghcr.io
|
||||||
- name: Set branch name as env variable
|
registry-username: ${{ github.repository_owner }}
|
||||||
run: |
|
registry-password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
currentbranch=$(echo ${GITHUB_REF##*/})
|
name: aci-ordering.backgroundtasks-test
|
||||||
echo "running on $currentbranch"
|
location: 'west us'
|
||||||
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Deploy Chart
|
|
||||||
run: |
|
|
||||||
./deploy-chart.sh -c ${{ env.CHART }} --dns aks --aks-name ${{ secrets.CLUSTER_NAME }} --aks-rg ${{ secrets.RESOURCE_GROUP }} -r ${{ secrets.REGISTRY_HOST }} -t $TAG --namespace ${{ env.NAMESPACE }} --acr-connected
|
|
||||||
env:
|
|
||||||
TAG: ${{ env.BRANCH }}
|
|
||||||
working-directory: ${{ env.CHART_ROOT }}
|
|
34
.github/workflows/ordering-signalrhub-deploy.yml
vendored
34
.github/workflows/ordering-signalrhub-deploy.yml
vendored
@ -16,9 +16,8 @@ env:
|
|||||||
CHART_ROOT: deploy/k8s/helm
|
CHART_ROOT: deploy/k8s/helm
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-to-k8s:
|
deploy-to-aci:
|
||||||
#if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||||
if: false
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -28,23 +27,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
|
|
||||||
- uses: azure/aks-set-context@v1
|
- name: 'Deploy to Azure Container Instances'
|
||||||
name: Set AKS context
|
uses: 'azure/aci-deploy@v1'
|
||||||
with:
|
with:
|
||||||
creds: '${{ secrets.AZURE_CREDENTIALS }}'
|
resource-group: aci-test-rg
|
||||||
cluster-name: ${{ secrets.CLUSTER_NAME }}
|
dns-name-label: aci-test-rg${{ github.run_number }}
|
||||||
resource-group: ${{ secrets.RESOURCE_GROUP }}
|
image: ${{ secrets.REGISTRY_LOGIN_SERVER }}/variableclass/ordering.signalrhub:latest
|
||||||
|
registry-login-server: ghcr.io
|
||||||
- name: Set branch name as env variable
|
registry-username: ${{ github.repository_owner }}
|
||||||
run: |
|
registry-password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
currentbranch=$(echo ${GITHUB_REF##*/})
|
name: aci-ordering.signalrhub-test
|
||||||
echo "running on $currentbranch"
|
location: 'west us'
|
||||||
echo "BRANCH=$currentbranch" >> $GITHUB_ENV
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Deploy Chart
|
|
||||||
run: |
|
|
||||||
./deploy-chart.sh -c ${{ env.CHART }} --dns aks --aks-name ${{ secrets.CLUSTER_NAME }} --aks-rg ${{ secrets.RESOURCE_GROUP }} -r ${{ secrets.REGISTRY_HOST }} -t $TAG --namespace ${{ env.NAMESPACE }} --acr-connected
|
|
||||||
env:
|
|
||||||
TAG: ${{ env.BRANCH }}
|
|
||||||
working-directory: ${{ env.CHART_ROOT }}
|
|
Loading…
x
Reference in New Issue
Block a user