revert e2f0d61224
All checks were successful
Build and Test / build-image (push) Successful in 21s

revert Update .gitea/workflows/publish-nuget.yml
This commit is contained in:
2025-12-31 10:06:24 +00:00
parent e2f0d61224
commit 8c1cb1bb2c
2 changed files with 26 additions and 42 deletions

View File

@@ -0,0 +1,26 @@
name: Build and Test
run-name: ${{ gitea.actor }} is building a Docker image 🚀
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 }}