Skip to content

Bump Azure.Identity from 1.7.0-beta.1 to 1.10.2 in /src/BlazeBin/Server #111

Bump Azure.Identity from 1.7.0-beta.1 to 1.10.2 in /src/BlazeBin/Server

Bump Azure.Identity from 1.7.0-beta.1 to 1.10.2 in /src/BlazeBin/Server #111

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name == 'push'
uses: docker/login-action@v1.10.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1.5.1
with:
version: latest
install: true
- name: Extract Docker metadata for main build
id: meta
uses: docker/metadata-action@v3.4.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=${{ github.event_name == 'push' }}
- name: Build and push Docker image
uses: docker/build-push-action@v2.6.1
with:
context: src/
file: src/BlazeBin/Server/Dockerfile
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-to: type=gha, scope=${{github.repository}}
cache-from: type=gha, scope=${{github.repository}}
publish:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Sleep for 15 seconds
run: sleep 5s
shell: bash
- name: Login to azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: deploy webapp
uses: azure/webapps-deploy@v2
with:
app-name: blazebin
slot-name: staging
images: ghcr.io/cisien/blazebin:main
build-static:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.8.1
with:
dotnet-version: 6.x
include-prerelease: true
- name: build
run: dotnet publish --configuration release -o output src/BlazeBin/Server/BlazeBin.Server.csproj
- name: bypass dumb default file check
run: echo "hello" > output/wwwroot/index.html
- name: Azure Static Web Apps Deploy
uses: Azure/static-web-apps-deploy@v1
with:
action: upload
app_location: output/wwwroot
azure_static_web_apps_api_token: ${{ secrets.BBCONTENT_DEPLOY_TOKEN}}
app_artifact_location: content
skip_app_build: true