Skip to content

Update Dockerfile

Update Dockerfile #14

Workflow file for this run

name: "Build AppHost"
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build_base_image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Get package metadata from Docker Hub
id: meta
uses: docker/metadata-action@v5
with:
images: lancemccarthy/aspirebase
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v5
with:
context: '.dockerbuilds/baseimage'
platforms: linux/arm64,linux/amd64
push: true
tags: |
lancemccarthy/aspirebase:8.0
build_app:
runs-on: ubuntu-latest
env:
NUGET_CONF_PATH: './nuget.config'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update NuGet Package Sources
run: dotnet nuget update source "TelerikServer" -s "https://nuget.telerik.com/v3/index.json" -u 'api-key' -p ${{secrets.TELERIK_NUGET_KEY}} --configfile ${{env.NUGET_CONF_PATH}} --store-password-in-clear-text
- name: Install .NET Aspire workload
run: dotnet workload install aspire
- name: Restore NuGet packages
run: dotnet restore --configfile ${{env.NUGET_CONF_PATH}}
- name: Build solution
run: dotnet build -c Release --no-restore