0
0
RhSolutions-Api/.gitea/workflows/test.yaml
Serghei Cebotari e0b3237a59
All checks were successful
Test API / test (push) Successful in 2m13s
Test API / release-image (push) Successful in 3m47s
Add build image action
2024-01-29 13:12:41 +03:00

42 lines
988 B
YAML

name: Test API
on:
push:
branches:
- "master"
workflow_dispatch:
jobs:
test:
env:
RUNNER_TOOL_CACHE: /toolcache
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- name: Test
run: dotnet test
release-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Gitea Hub
uses: docker/login-action@v3
with:
registry: gitea.cebotari.ru
username: chebser
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: gitea.cebotari.ru/chebser/rhsolutions-api:latest