From 6aec3294dcb9bda796eaba90fc9d65a020dce2e9 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Wed, 15 Jun 2022 12:23:37 -0400 Subject: [PATCH 1/6] Create an auto-deploy file --- ...r-a2931426-854d-4861-9e02-89a349183a4b.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml diff --git a/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml b/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml new file mode 100644 index 0000000..6e04e00 --- /dev/null +++ b/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml @@ -0,0 +1,60 @@ +name: Trigger auto deployment for tparnellblogcontainerapp + +# When this action will be executed +on: + # Automatically trigger it when detected changes in repo + push: + branches: + [ master ] + paths: + - '**' + - '.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.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.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} + password: ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} + + - name: Build and push container image to registry + uses: docker/build-push-action@v2 + with: + push: true + tags: terribledevreg.azurecr.io/tparnellblogcontainerapp:${{ github.sha }} + file: ./Dockerfile + context: ./ + + + deploy: + runs-on: ubuntu-latest + needs: build + + steps: + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.TPARNELLBLOGCONTAINERAPP_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 tparnellblogcontainerapp -g ContainerGroup --server terribledevreg.azurecr.io --username ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} --password ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} + az containerapp update -n tparnellblogcontainerapp -g ContainerGroup --image terribledevreg.azurecr.io/tparnellblogcontainerapp:${{ github.sha }} From 910a5fee1690253ef594dc24333c09b9d4294527 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Wed, 15 Jun 2022 17:54:26 -0400 Subject: [PATCH 2/6] Unlink the containerApp tparnellblogcontainerapp from this repo --- ...r-a2931426-854d-4861-9e02-89a349183a4b.yml | 60 ------------------- 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml diff --git a/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml b/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml deleted file mode 100644 index 6e04e00..0000000 --- a/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Trigger auto deployment for tparnellblogcontainerapp - -# When this action will be executed -on: - # Automatically trigger it when detected changes in repo - push: - branches: - [ master ] - paths: - - '**' - - '.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-a2931426-854d-4861-9e02-89a349183a4b.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.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} - password: ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} - - - name: Build and push container image to registry - uses: docker/build-push-action@v2 - with: - push: true - tags: terribledevreg.azurecr.io/tparnellblogcontainerapp:${{ github.sha }} - file: ./Dockerfile - context: ./ - - - deploy: - runs-on: ubuntu-latest - needs: build - - steps: - - name: Azure Login - uses: azure/login@v1 - with: - creds: ${{ secrets.TPARNELLBLOGCONTAINERAPP_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 tparnellblogcontainerapp -g ContainerGroup --server terribledevreg.azurecr.io --username ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} --password ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} - az containerapp update -n tparnellblogcontainerapp -g ContainerGroup --image terribledevreg.azurecr.io/tparnellblogcontainerapp:${{ github.sha }} From 6b9e0c8fe30f1a845f785a3b3dd39c893ad9e7be Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Wed, 15 Jun 2022 17:55:24 -0400 Subject: [PATCH 3/6] Create an auto-deploy file --- ...r-29af4cb3-93ae-4801-bf96-3e61579cf929.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml diff --git a/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml b/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml new file mode 100644 index 0000000..591bf14 --- /dev/null +++ b/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml @@ -0,0 +1,60 @@ +name: Trigger auto deployment for tparnellblogcontainerapp + +# When this action will be executed +on: + # Automatically trigger it when detected changes in repo + push: + branches: + [ master ] + paths: + - '**' + - '.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.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.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} + password: ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} + + - name: Build and push container image to registry + uses: docker/build-push-action@v2 + with: + push: true + tags: terribledevreg.azurecr.io/tparnellblogappcontainer:${{ github.sha }} + file: ./Dockerfile + context: ./ + + + deploy: + runs-on: ubuntu-latest + needs: build + + steps: + - name: Azure Login + uses: azure/login@v1 + with: + creds: ${{ secrets.TPARNELLBLOGCONTAINERAPP_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 tparnellblogcontainerapp -g ContainerGroup --server terribledevreg.azurecr.io --username ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} --password ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} + az containerapp update -n tparnellblogcontainerapp -g ContainerGroup --image terribledevreg.azurecr.io/tparnellblogappcontainer:${{ github.sha }} From e6d7240996c22498c3aa7111fc1f9fa0eca1eedc Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Wed, 15 Jun 2022 18:01:44 -0400 Subject: [PATCH 4/6] Unlink the containerApp tparnellblogcontainerapp from this repo --- ...r-29af4cb3-93ae-4801-bf96-3e61579cf929.yml | 60 ------------------- 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml diff --git a/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml b/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml deleted file mode 100644 index 591bf14..0000000 --- a/.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Trigger auto deployment for tparnellblogcontainerapp - -# When this action will be executed -on: - # Automatically trigger it when detected changes in repo - push: - branches: - [ master ] - paths: - - '**' - - '.github/workflows/tparnellblogcontainerapp-AutoDeployTrigger-29af4cb3-93ae-4801-bf96-3e61579cf929.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.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} - password: ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} - - - name: Build and push container image to registry - uses: docker/build-push-action@v2 - with: - push: true - tags: terribledevreg.azurecr.io/tparnellblogappcontainer:${{ github.sha }} - file: ./Dockerfile - context: ./ - - - deploy: - runs-on: ubuntu-latest - needs: build - - steps: - - name: Azure Login - uses: azure/login@v1 - with: - creds: ${{ secrets.TPARNELLBLOGCONTAINERAPP_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 tparnellblogcontainerapp -g ContainerGroup --server terribledevreg.azurecr.io --username ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_USERNAME }} --password ${{ secrets.TPARNELLBLOGCONTAINERAPP_REGISTRY_PASSWORD }} - az containerapp update -n tparnellblogcontainerapp -g ContainerGroup --image terribledevreg.azurecr.io/tparnellblogappcontainer:${{ github.sha }} From c1687cccf5df4c847e9885681096b2ce6bf2c323 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Wed, 15 Jun 2022 18:04:21 -0400 Subject: [PATCH 5/6] Create an auto-deploy file --- ...r-63a78573-0450-4fa7-92eb-43918b0e6169.yml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml diff --git a/.github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml b/.github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml new file mode 100644 index 0000000..33ef036 --- /dev/null +++ b/.github/workflows/tparnellblogk8s-AutoDeployTrigger-63a78573-0450-4fa7-92eb-43918b0e6169.yml @@ -0,0 +1,60 @@ +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 }} From cc34f198a84ac2245df6ea4c049a434ad0b9c678 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Wed, 15 Jun 2022 18:13:15 -0400 Subject: [PATCH 6/6] Delete captain-definition --- captain-definition | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 captain-definition diff --git a/captain-definition b/captain-definition deleted file mode 100644 index 17db556..0000000 --- a/captain-definition +++ /dev/null @@ -1,4 +0,0 @@ - { - "schemaVersion": 2, - "dockerfilePath": "./Dockerfile" - }