From fba32ef9cdce34424ef742dab53f71cb0850663a Mon Sep 17 00:00:00 2001 From: Emiliano Bonassi Date: Fri, 27 Dec 2024 23:20:04 +0100 Subject: [PATCH] ci: build --- .github/workflows/build.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..ec790df6d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: Docker build CI +run-name: Docker build CI triggered from @${{ github.actor }} of ${{ github.head_ref }} + +on: + push: + branches: + - 'v*' + +permissions: + contents: read + packages: write # Required to push Docker images to ghcr.io + +jobs: + docker: + name: Docker build + runs-on: ubuntu-24.04 + + steps: + - name: Remove unnecessary files + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - + name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build nitro-node docker + uses: docker/build-push-action@v5 + with: + target: nitro-node + push: true + context: . + tags: ghcr.io/conduitxyz/plume-nitro:${{ github.ref_name }}