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/izebra_projects/nexusdash-izebra:latest # Adjust the Gitea registry URL and team name - name: Push Docker image to Gitea run: docker push git.izebra.net/izebra_projects/nexusdash-izebra:latest # Adjust the Gitea registry URL and team name # Add any additional steps you need for deployment or other tasks