From e0b3237a591b6caec582f00c7b32261789eed429 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Mon, 29 Jan 2024 13:12:41 +0300 Subject: [PATCH] Add build image action --- .gitea/workflows/test.yaml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 9a7351f..bfe15ed 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -12,10 +12,31 @@ jobs: RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - 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 \ No newline at end of file + 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 \ No newline at end of file