From 7f52ad17c05bbcb016ce74620faec09290addd5f Mon Sep 17 00:00:00 2001 From: VitalickS Date: Wed, 31 Dec 2025 09:14:08 +0000 Subject: [PATCH] Add .gitea /workflows/build-and-test.yml_ --- .gitea /workflows/build-and-test.yml_ | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea /workflows/build-and-test.yml_ diff --git a/ .gitea /workflows/build-and-test.yml_ b/ .gitea /workflows/build-and-test.yml_ new file mode 100644 index 0000000..24fa014 --- /dev/null +++ b/ .gitea /workflows/build-and-test.yml_ @@ -0,0 +1,26 @@ +name: Build and Test + +run-name: ${{ gitea.actor }} is building Runtime NuGet Package update 🚀 + +on: [push] # Triggers the workflow on push events + +jobs: + build-image: + runs-on: ubuntu-latest # Specifies the runner environment + steps: + - name: Checkout Code + uses: actions/checkout@v4 # Uses a standard action to check out the repository code + + - name: Login to the DockerHub registry + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build Docker image + run: | + docker build -t ${{ vars.DOCKERHUB_IMAGENAME }} . + docker push ${{ vars.DOCKERHUB_IMAGENAME }} + + - name: Run tests (example) + run: docker run --rm ${{ vars.DOCKERHUB_IMAGENAME }}