diff --git a/.github/workflows/dev_workflow.yaml b/.github/workflows/dev_workflow.yaml index 3daa171..e591c71 100644 --- a/.github/workflows/dev_workflow.yaml +++ b/.github/workflows/dev_workflow.yaml @@ -21,20 +21,19 @@ jobs: docker build -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.ref_name == 'main' && 'prod' || github.ref_name }}${{ github.ref_name != 'main' && '-latest' || 'latest' }} . docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags # This is done as Container Instance - # Deploy: - # needs: Build - # environment: - # name: Development - # runs-on: ubuntu-latest - # steps: - # - name: Login to Azure - # uses: azure/login@v1 - # with: - # creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }} - # - name: Deploy to Dev - # uses: azure/webapps-deploy@v2 - # with: - # app-name: ${{ secrets.AZURE_WEBAPP_NAME }} - # images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} - - + Deploy: + needs: Build + environment: + name: Development + runs-on: ubuntu-latest + steps: + - name: Login to Azure + uses: azure/login@v1 + with: + creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }} + - name: Deploy to Dev + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ secrets.AZURE_WEBAPP_NAME }} + images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} + diff --git a/.github/workflows/stage_workflow.yaml b/.github/workflows/stage_workflow.yaml index 8f70225..65547b1 100644 --- a/.github/workflows/stage_workflow.yaml +++ b/.github/workflows/stage_workflow.yaml @@ -21,21 +21,21 @@ jobs: docker build -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.ref_name == 'main' && 'prod' || github.ref_name }}${{ github.ref_name != 'main' && '-latest' || 'latest' }} . docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags # This is done as Container Instance - # Deploy: - # needs: Build - # environment: - # name: Stage - # runs-on: ubuntu-latest - # steps: - # - name: Login to Azure - # uses: azure/login@v1 - # with: - # creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }} - # - name: Deploy to Dev - # uses: azure/webapps-deploy@v2 - # with: - # app-name: ${{ secrets.AZURE_WEBAPP_NAME }} - # images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} + Deploy: + needs: Build + environment: + name: Stage + runs-on: ubuntu-latest + steps: + - name: Login to Azure + uses: azure/login@v1 + with: + creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }} + - name: Deploy to Dev + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ secrets.AZURE_WEBAPP_NAME }} + images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} \ No newline at end of file