Merge pull request #768 from dolittle/atlas-fix #1573
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: Runtime | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
ci: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: "8.0.x" | |
- name: Build | |
run: dotnet build --configuration Release -f net8.0 | |
- name: Test | |
run: dotnet test --filter Tag!=IntegrationTest --no-build -f net8.0 --configuration Release --collect:"XPlat Code Coverage" | |
build-prod-docker-image: | |
name: Build Production Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: docker/setup-qemu-action@v1 | |
- uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build Production Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
push: false | |
context: . | |
file: ./Docker/Production/Dockerfile | |
build-args: | | |
VERSION=0.0.0 | |
platforms: linux/amd64,linux/arm64 | |
build-dev-docker-image: | |
name: Build Development Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: docker/setup-qemu-action@v1 | |
- uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build Development Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
push: false | |
context: . | |
file: ./Docker/Development/Dockerfile | |
build-args: | | |
VERSION=0.0.0 | |
platforms: linux/amd64,linux/arm64 |