Gitea fix
Some checks failed
Create and publish a Docker image / build (push) Failing after 0s

This commit is contained in:
2024-09-14 23:02:32 +03:30
parent 567a90014d
commit 8ad0ab485c

View File

@@ -1,32 +1,23 @@
kind: pipeline #
type: docker name: Create and publish a Docker image
name: default
steps: # Configures this workflow to run every time a change is pushed to the branch called `release`.
- name: build on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: g7s
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
environment: script:
DOTNET_CLI_TELEMETRY_OPTOUT: "1" - dotnet nuget add source https://pkgs.dev.azure.com/tgbots/Telegram.Bot/_packaging/release/nuget/v3/index.json -n Telegram.Bot
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1" - dotnet restore --no-cache
commands: - dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=false /p:EnableCompressionInSingleFile=true
- dotnet nuget add source https://pkgs.dev.azure.com/tgbots/Telegram.Bot/_packaging/release/nuget/v3/index.json -n Telegram.Bot - tar -czvf publish.tar.gz -C bin/Release/net8.0/linux-x64/publish/ .
- dotnet restore --no-cache artifacts:
- dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=false /p:EnableCompressionInSingleFile=true paths:
- tar -czvf publish.tar.gz -C bin/Release/net8.0/linux-x64/publish/ . - publish.tar.gz
services:
- name: docker
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
workspace:
base: /drone/src
path: github.com/your/repo
volumes:
- name: dockersock
host:
path: /var/run/docker.sock