From f93aea2696aabb19447c7165102b83e7da3a25c1 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Thu, 10 Aug 2023 07:29:16 -0400 Subject: [PATCH] rm old versions --- .../workflows/master_tparnellbloglinux.yml | 51 ---------------- ...r-63a78573-0450-4fa7-92eb-43918b0e6169.yml | 60 ------------------- 2 files changed, 111 deletions(-) delete mode 100644 .github/workflows/master_tparnellbloglinux.yml delete mode 100644 .github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml diff --git a/.github/workflows/master_tparnellbloglinux.yml b/.github/workflows/master_tparnellbloglinux.yml deleted file mode 100644 index 513680d..0000000 --- a/.github/workflows/master_tparnellbloglinux.yml +++ /dev/null @@ -1,51 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy -# More GitHub Actions for Azure: https://github.com/Azure/actions - -name: Build and deploy container app to Azure Web App - tparnellbloglinux - -on: - push: - branches: - - master - workflow_dispatch: - -jobs: - build: - runs-on: 'ubuntu-latest' - - steps: - - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Log in to registry - uses: docker/login-action@v1 - with: - registry: https://terribledevreg.azurecr.io/ - username: ${{ secrets.AzureAppService_ContainerUsername_aec4619fe53744eab156fa2356a5e1e4 }} - password: ${{ secrets.AzureAppService_ContainerPassword_1a9d2b89f86245f982b0fbfc81951798 }} - - - name: Build and push container image to registry - uses: docker/build-push-action@v2 - with: - push: true - tags: terribledevreg.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_aec4619fe53744eab156fa2356a5e1e4 }}/tparnellbloglinux-img:${{ github.sha }} - file: ./Dockerfile - - deploy: - runs-on: ubuntu-latest - needs: build - environment: - name: 'production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - - steps: - - name: Deploy to Azure Web App - id: deploy-to-webapp - uses: azure/webapps-deploy@v2 - with: - app-name: 'tparnellbloglinux' - slot-name: 'production' - publish-profile: ${{ secrets.AzureAppService_PublishProfile_110e4da4c4b44f4fbd30c6811b6cb64c }} - images: 'terribledevreg.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_aec4619fe53744eab156fa2356a5e1e4 }}/tparnellbloglinux-img:${{ github.sha }}' \ No newline at end of file diff --git a/.github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml b/.github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml deleted file mode 100644 index 33ef036..0000000 --- a/.github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Trigger auto deployment for tparnellblogk8s - -# When this action will be executed -on: - # Automatically trigger it when detected changes in repo - push: - branches: - [ master ] - paths: - - '**' - - '.github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml' - - # Allow mannually trigger - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout to the branch - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Log in to container registry - uses: docker/login-action@v1 - with: - registry: terribledevreg.azurecr.io - username: ${{ secrets.TPARNELLBLOGK8S_REGISTRY_USERNAME }} - password: ${{ secrets.TPARNELLBLOGK8S_REGISTRY_PASSWORD }} - - - name: Build and push container image to registry - uses: docker/build-push-action@v2 - with: - push: true - tags: terribledevreg.azurecr.io/tparnellblogk8s:${{ github.sha }} - file: ./Dockerfile - context: ./ - - - deploy: - runs-on: ubuntu-latest - needs: build - - steps: - - name: Azure Login - uses: azure/login@v1 - with: - creds: ${{ secrets.TPARNELLBLOGK8S_AZURE_CREDENTIALS }} - - - - name: Deploy to containerapp - uses: azure/CLI@v1 - with: - inlineScript: | - az config set extension.use_dynamic_install=yes_without_prompt - az containerapp registry set -n tparnellblogk8s -g containerapp --server terribledevreg.azurecr.io --username ${{ secrets.TPARNELLBLOGK8S_REGISTRY_USERNAME }} --password ${{ secrets.TPARNELLBLOGK8S_REGISTRY_PASSWORD }} - az containerapp update -n tparnellblogk8s -g containerapp --image terribledevreg.azurecr.io/tparnellblogk8s:${{ github.sha }}