Bump stylelint from 16.10.0 to 16.11.0 (#896) #222
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: 'HfEYP App Deploy [Azure - DEV]' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/*.md' | |
- .docker* | |
- .env.example | |
- .gitignore | |
- .tool-versions | |
- .yardopts | |
- bin/* | |
- docker-compose.* | |
- terraform/** | |
- terraform-azure/** | |
# Permissions for OIDC authentication | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
env: | |
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
DOCKER_IMAGE: ghcr.io/dfe-digital/help-for-early-years-providers | |
RELEASE_VERSION: ${{ github.sha }} | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
# Create and boot Docker image builder | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: v0.9.1 | |
# Login to the container registry | |
- name: Login to Github Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push docker image from builder target | |
uses: docker/build-push-action@v6 | |
with: | |
target: app | |
context: . | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Help for Early Years Providers Application | |
build-args: | | |
BUILDKIT_INLINE_CACHE=1 | |
SHA=${{ github.sha }} | |
cache-from: | | |
${{ env.DOCKER_IMAGE }}:${{ github.sha }} | |
tags: | | |
${{ env.DOCKER_IMAGE }}:${{ github.sha }} | |
${{ env.DOCKER_IMAGE }}:latest | |
# Login to Azure using OIDC | |
- name: Login to Azure CLI | |
uses: azure/login@v2 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
# Deploy Web Application | |
- name: Deploy to Azure App Services | |
uses: azure/webapps-deploy@v3 | |
with: | |
app-name: ${{ vars.WEBAPP_NAME }} | |
images: ${{ env.DOCKER_IMAGE }}:${{ github.sha }} |