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

49 lines
1.2 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"
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
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 }}
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-01-29 13:22:27 +03:00
tags: gitea.cebotari.ru/chebser/rhsolutions-api:latest
- name: Build database
uses: docker/build-push-action@v5
with:
2024-01-29 13:34:23 +03:00
context: Database
2024-01-29 13:22:27 +03:00
file: Database/Dockerfile
push: true
tags: gitea.cebotari.ru/chebser/rhsolutions-db:latest