Skip to content

Commit

Permalink
Update azure_container_setup_alvtime-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lnordhus committed Oct 11, 2024
1 parent 38defc5 commit 1813361
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/azure_container_setup_alvtime-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,3 @@
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy container app to Azure Web App - alvtime-test

on:
workflow_dispatch:
push:
branches:
- master
paths:
- "packages/api/**"

jobs:
build:
runs-on: 'ubuntu-latest'
environment: test

steps:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to registry
uses: docker/login-action@v2
with:
registry: https://commoninfrastructuretest.azurecr.io/
username: ${{ vars.AzureAppService_ContainerUsername_11510f2f6bf64633a871f60eed2d4625 }}
password: ${{ secrets.AzureAppService_ContainerPassword_dcfd19edf6f3408abde7828a7c85ecb8 }}

- name: Build and push container image to registry
uses: docker/build-push-action@v3
with:
push: true
tags: commoninfrastructuretest.azurecr.io/${{ vars.AzureAppService_ContainerUsername_11510f2f6bf64633a871f60eed2d4625 }}/mcr.microsoft.com/appsvc/staticsite:${{ github.sha }}
file: ./packages/api/Dockerfile

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: test
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: 'alvtime-test'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_0f7423cf4b0c41bcbbc595791bd10baf }}
images: 'commoninfrastructuretest.azurecr.io/${{ vars.AzureAppService_ContainerUsername_11510f2f6bf64633a871f60eed2d4625 }}/mcr.microsoft.com/appsvc/staticsite:${{ github.sha }}'

0 comments on commit 1813361

Please sign in to comment.