diff --git a/.github/workflows/build-cl-node.yaml b/.github/workflows/build-cl-node.yaml new file mode 100644 index 000000000..76600a053 --- /dev/null +++ b/.github/workflows/build-cl-node.yaml @@ -0,0 +1,45 @@ +name: Build CL image with plugins +on: + push: + +jobs: + test: + runs-on: ubuntu22.04-16cores-64GB + permissions: + id-token: write + contents: read + steps: + - name: Checkout Chainlink repository + uses: actions/checkout@v3 + with: + repository: smartcontractkit/chainlink + path: chainlink-repo + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: /home/runner/work/chainlink-ccv/chainlink-ccv/chainlink-repo/go.mod + - name: Cache Go modules + uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-cl-${{ hashFiles('/home/runner/work/chainlink-ccv/chainlink-ccv/chainlink-repo/go.mod') }} + restore-keys: | + ${{ runner.os }}-go-cl- + - name: Download Go modules + working-directory: /home/runner/work/chainlink-ccv/chainlink-ccv/chainlink-repo + run: go mod download + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Build and Load Docker Image + uses: docker/build-push-action@v4 + with: + cache-from: type=gha,scope=ccv + cache-to: type=gha,scope=ccv,mode=max + context: /home/runner/work/chainlink-ccv/chainlink-ccv/chainlink-repo + file: /home/runner/work/chainlink-ccv/chainlink-ccv/chainlink-repo/plugins/chainlink.Dockerfile + load: true + tags: local + build-args: | + BUILDKIT_INLINE_CACHE=1 \ No newline at end of file