Skip to content

12 auto deploy to stage #30

12 auto deploy to stage

12 auto deploy to stage #30

Workflow file for this run

name: .NET
on:
push:
branches: [ "master" ]
paths:
- 'src/Argon.Api/**'
pull_request:
branches: [ "master" ]
paths:
- 'src/Argon.Api/**'
jobs:
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
build:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: qa
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.REGISTRY }}
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PWD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./src/Argon.Api/Dockerfile
push: true
tags: reg.staging.svck.dev/argon/api-orleans:${{ github.run_number }}
platforms: linux/arm64/v8
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache