name: Gitea Actions Demo on: [push] jobs: build-and-run: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Login to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push uses: docker/build-push-action@v5 # Updated to v5 with: context: . push: true tags: ${{ github.repository }}:latest - name: Run container run: | docker run -d -p 8000:8000 ${{ github.repository }}:latest