Disable deploy job #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push Docker Image | ||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- "GuildWarsPartySearch.Common/**" | ||
- "GuildWarsPartySearch/**" | ||
- ".github/workflows/docker-deploy.yaml" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check out the repository | ||
# uses: actions/checkout@v2 | ||
# - name: Install .NET Core | ||
# uses: actions/setup-dotnet@v3 | ||
# with: | ||
# dotnet-version: '8.x' | ||
# - name: Log in to Docker Hub | ||
# run: | | ||
# docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_PASSWORD }}" | ||
# - name: Create Docker Environment File | ||
# shell: pwsh | ||
# run: | | ||
# cd GuildWarsPartySearch | ||
# $envFilePath = "envfile" | ||
# $envContent = @( | ||
# "ServerOptions__ApiKey=${{ secrets.APIKEY }}", | ||
# "ServerOptions__Certificate=${{ secrets.CERTIFICATE_BASE64 }}", | ||
# "ApplicationInsights__InstrumentationKey=${{ secrets.AZURE_INSIGHTS_INSTRUMENTATIONKEY }}", | ||
# "AzureCredentialsOptions__ClientSecret=${{ secrets.AZURE_CLIENT_SECRET }}", | ||
# "AzureCredentialsOptions__ClientId=${{ secrets.AZURE_CLIENT_ID }}", | ||
# "AzureCredentialsOptions__TenantId=${{ secrets.AZURE_TENANT_ID }}" | ||
# ) | ||
# $envContent | Set-Content -Path $envFilePath | ||
# Write-Host "Environment file created: $envFilePath" | ||
# - name: Build and push Docker image | ||
# run: | | ||
# cd GuildWarsPartySearch | ||
# .\BuildDockerImage.ps1 | ||
# docker push alex4991/guildwarspartysearch.server | ||
# shell: pwsh | ||
# - name: Create Private Key File | ||
# run: | | ||
# cd GuildWarsPartySearch | ||
# $privateKeyContent = "${{ secrets.HOST_KEY }}" | ||
# Set-Content -Path private.key -Value $privateKeyContent | ||
# shell: pwsh | ||
# - name: Set Private Key permissions | ||
# run: | | ||
# cd GuildWarsPartySearch | ||
# chmod 400 private.key | ||
# shell: bash | ||
# - name: Deploy Docker image to host | ||
# shell: pwsh | ||
# run: | | ||
# cd GuildWarsPartySearch | ||
# .\DeployToVM.ps1 -KeyFile private.key -User ${{ secrets.HOST_USER }} -Address ${{ secrets.HOST_ADDRESS }} -PathToEnvFileFolder . |