diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 0000000000..d31c21844e --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -0,0 +1,29 @@ +name: CI Build + +on: + pull_request: + types: [closed] + +jobs: + build: + if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build') + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-ethereum-limechain:${{ github.sha }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml.bk similarity index 100% rename from .github/workflows/go.yml rename to .github/workflows/go.yml.bk