Skip to content

Fix endless loop in yaml position backtracking (#433) #282

Fix endless loop in yaml position backtracking (#433)

Fix endless loop in yaml position backtracking (#433) #282

Workflow file for this run

on:
push:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- run: |
FROM ${{ runner.arch == 'x64' && '--platform=linux/amd64' || runner.arch == 'arm64' && '--platform=linux/arm64' }} mcr.microsoft.com/dotnet/sdk:6.0
COPY . ./
RUN dotnet msbuild src/dir.proj -t:GenerateConstant && dotnet publish src/Runner.Client -c Release --no-self-contained -p:BUILD_OS=Any -p:RuntimeFrameworkVersion=6.0.0 -o /app
FROM mcr.microsoft.com/dotnet/aspnet:latest
COPY --from=0 /app/ /app/
ENTRYPOINT [ "dotnet", "/app/Runner.Client.dll" ]
shell: cp {0} Dockerfile
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
echo "LOWNER<<EOF23" >> $GITHUB_ENV
echo $(echo "$OWNER" | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
echo "EOF23" >> $GITHUB_ENV
shell: bash
env:
OWNER: ${{github.repository_owner}}
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{env.LOWNER}}/gharun:latest