diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..5b929b3 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,39 @@ +name: Docker Build + +on: + push: + branches: + - main + workflow_dispatch: +# container: + +# image: catthehacker/ubuntu:act-latest + +jobs: + build: + runs-on: ubuntu-latest + + steps: + + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + + - name: Log in to Gitea Registry + run: echo "${{ secrets.TOKEN }}"| docker login -u zebra --password-stdin git.izebra.net + ##run: docker login -u zebra -p "${{ secrets.TOKEN }}" git.izebra.net + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: git.izebra.net/mirrored_repos/nexusdash:latest # Adjust the Gitea registry URL and team name + + - name: Push Docker image to Gitea + run: docker push git.izebra.net/git.izebra.net/mirrored_repos/nexusdash:latest # Adjust the Gitea registry URL and team name + + # Add any additional steps you need for deployment or other tasks \ No newline at end of file