diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b2bdbcc --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }} +