Merge pull request #27 from loft-sh/dotnet-8 #19
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 .NET | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "dotnet/**" | |
- ".github/workflows/dotnet.yaml" | |
- "install_tooling.sh" | |
workflow_call: | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_REPO: loft-sh/devspace-containers/dotnet | |
defaults: | |
run: | |
working-directory: dotnet | |
jobs: | |
dotnet: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- tag: 8.0-alpine | |
- tag: 7.0-alpine | |
- tag: 6.0-alpine | |
- tag: 3.1-alpine | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: docker/setup-qemu-action@v1 | |
- uses: docker/setup-buildx-action@v1 | |
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: loft-sh/setup-devspace@main | |
- run: devspace build --var TAG=${{ matrix.tag }} |