name: Docker Build and Push on: # push: branches: - main jobs: build-and-push: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@main - name: Login to Gitea Container Registry uses: docker/login-action@master with: registry: git.jisoonet.com username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - name: Build and push Docker image uses: docker/build-push-action@master with: context: . push: true tags: git.jisoonet.com/${{ gitea.repository }}:latest