Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gicastel authored Jul 29, 2024
1 parent 6c96880 commit e7c9b6b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build

on:
push:
branches:
- '*'

jobs:
build-binaries:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x.x

- name: Build
run: |
dotnet publish ./src/qest/ -o ./pub --runtime linux-x64 -c Release --self-contained true /p:PublishSingleFile=true
dotnet publish ./src/qest/ -o ./pub --runtime win-x64 -c Release --self-contained true /p:PublishSingleFile=true
build-docker-standalone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out code

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: standalone.dockerfile
pull: true
push: false
tags: tandalone, standalone-latest, standalone-${{ github.ref_name }}

0 comments on commit e7c9b6b

Please sign in to comment.