0
0
RhSolutions-Api/.gitea/workflows/release.yaml

44 lines
1.0 KiB
YAML
Raw Normal View History

2024-01-29 13:22:27 +03:00
name: Test and release
2024-01-23 23:29:16 +03:00
on:
push:
branches:
- "master"
2024-02-07 16:59:55 +03:00
paths-ignore:
- "README"
2024-01-23 23:29:16 +03:00
workflow_dispatch:
jobs:
2024-01-24 22:19:57 +03:00
test:
env:
RUNNER_TOOL_CACHE: /toolcache
2024-01-23 23:29:16 +03:00
runs-on: ubuntu-latest
steps:
2024-01-29 13:12:41 +03:00
- name: Checkout
uses: actions/checkout@v3
2024-01-23 23:29:16 +03:00
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- name: Test
2024-01-29 13:12:41 +03:00
run: dotnet test
release-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
2024-02-16 14:37:45 +03:00
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
2024-01-29 13:12:41 +03:00
- name: Login to Gitea Hub
uses: docker/login-action@v3
with:
registry: gitea.cebotari.ru
username: chebser
password: ${{ secrets.DOCKER_TOKEN }}
2024-01-29 13:22:27 +03:00
- name: Build app
2024-01-29 13:12:41 +03:00
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
2024-02-09 16:48:11 +03:00
tags: gitea.cebotari.ru/chebser/rhsolutions-api:latest