diff --git a/.github/workflows/capDeploy.yml b/.github/workflows/capDeploy.yml deleted file mode 100644 index 09797ac..0000000 --- a/.github/workflows/capDeploy.yml +++ /dev/null @@ -1,17 +0,0 @@ -on: - push: - branches: - - master - -jobs: - CapDeploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - ref: master - - uses: actions/setup-node@v3 - with: - node-version: '14' - - name: 'Deploy' - run: npx caprover deploy -h '${{ secrets.CAPROVER_SERVER}}' -p '${{ secrets.CAPROVER_PASSWORD }}' -b master -a blog \ No newline at end of file diff --git a/.github/workflows/deployContainerToHeroku.yml b/.github/workflows/deployContainerToHeroku.yml deleted file mode 100644 index c190d09..0000000 --- a/.github/workflows/deployContainerToHeroku.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Deploy to heroku. - -# Run workflow on every push to master branch. -on: - push: - branches: [master] - -# Your workflows jobs. -jobs: - build: - runs-on: ubuntu-latest - steps: - # Check-out your repository. - - name: Checkout - uses: actions/checkout@v2 - - -### ⬇ IMPORTANT PART ⬇ ### - - - name: Build, Push and Release a Docker container to Heroku. # Your custom step name - uses: gonuit/heroku-docker-deploy@v1.3.3 # GitHub action name (leave it as it is). - with: - # Below you must provide variables for your Heroku app. - - # The email address associated with your Heroku account. - # If you don't want to use repository secrets (which is recommended) you can do: - # email: my.email@example.com - email: ${{ secrets.HEROKU_EMAIL }} - - # Heroku API key associated with provided user's email. - # Api Key is available under your Heroku account settings. - heroku_api_key: ${{ secrets.HEROKU_API_KEY }} - - # Name of the heroku application to which the build is to be sent. - heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} - - # (Optional, default: "./") - # Dockerfile directory. - # For example, if you have a Dockerfile in the root of your project, leave it as follows: - dockerfile_directory: ./src/TerribleDev.Blog.Web - - # (Optional, default: "Dockerfile") - # Dockerfile name. - dockerfile_name: Dockerfile - - # (Optional, default: "") - # Additional options of docker build command. - docker_options: "--no-cache" - - # (Optional, default: "web") - # Select the process type for which you want the docker container to be uploaded. - # By default, this argument is set to "web". - # For more information look at https://devcenter.heroku.com/articles/process-model - process_type: web \ No newline at end of file diff --git a/.github/workflows/deploytoContainerWebApp.yml b/.github/workflows/deploytoContainerWebApp.yml deleted file mode 100644 index 8eef23b..0000000 --- a/.github/workflows/deploytoContainerWebApp.yml +++ /dev/null @@ -1,56 +0,0 @@ -on: - push: - branches: - - master - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: 'Checkout Github Action' - uses: actions/checkout@master - - - name: 'Login via Azure CLI' - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - uses: azure/docker-login@v1 - with: - login-server: terribledevreg.azurecr.io - username: ${{ secrets.acr_terribledevreg_username }} - password: ${{ secrets.acr_terribledevreg_password }} - - - name: Build and push image to ACR - id: build-image - run: | - docker build "$GITHUB_WORKSPACE/src/TerribleDev.Blog.Web" -f "src/TerribleDev.Blog.Web/Dockerfile" -t terribledevreg.azurecr.io/tparnellbloglinux-img:${{ github.sha }} - docker push terribledevreg.azurecr.io/tparnellbloglinux-img:${{ github.sha }} - - - name: Set Web App ACR authentication - uses: Azure/appservice-settings@v1 - with: - app-name: tparnellbloglinux - app-settings-json: | - [ - { - "name": "DOCKER_REGISTRY_SERVER_URL", - "value": "terribledevreg.azurecr.io", - "slotSetting": false - }, - { - "name": "DOCKER_REGISTRY_SERVER_USERNAME", - "value": "${{ secrets.acr_terribledevreg_username }}", - "slotSetting": false - }, - { - "name": "DOCKER_REGISTRY_SERVER_PASSWORD", - "value": "${{ secrets.acr_terribledevreg_password }}", - "slotSetting": false - } - ] - - - uses: azure/webapps-deploy@v2 - with: - app-name: tparnellbloglinux - images: terribledevreg.azurecr.io/tparnellbloglinux-img:${{ github.sha }} \ No newline at end of file diff --git a/.github/workflows/master_tparnellblogwin.yml b/.github/workflows/master_tparnellblogwin.yml deleted file mode 100644 index acbb6e5..0000000 --- a/.github/workflows/master_tparnellblogwin.yml +++ /dev/null @@ -1,57 +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 ASP.Net Core app to Azure Web App - tparnellblogwin - -on: - push: - branches: - - master - workflow_dispatch: - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.x' - include-prerelease: true - - - name: Build with dotnet - run: dotnet build --configuration Release - - - name: dotnet publish - run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp - - - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 - with: - name: .net-app - path: ${{env.DOTNET_ROOT}}/myapp - - deploy: - runs-on: windows-latest - needs: build - environment: - name: 'Production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v2 - with: - name: .net-app - - - name: Deploy to Azure Web App - id: deploy-to-webapp - uses: azure/webapps-deploy@v2 - with: - app-name: 'tparnellblogwin' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_FECF617B2C814ECC9C3EFC2F408E40AD }} - package: .