From 1cfcf7038446056bfde563c3159b6b6d4efb47f7 Mon Sep 17 00:00:00 2001 From: fewensa <37804932+fewensa@users.noreply.github.com> Date: Mon, 13 May 2024 09:52:59 +0800 Subject: [PATCH] Build ponder --- .github/workflows/publish.yml | 22 +++++++++++++++++----- ponder/lnv3/Dockerfile | 11 +++++++++++ 2 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 ponder/lnv3/Dockerfile diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cd2d387..2a3b168 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,8 +12,8 @@ env: DOCKER_REGISTRY: ghcr.io jobs: - publish-apollo: - name: Publish apollo + publish-indexer: + name: Publish indexer runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -33,12 +33,24 @@ jobs: - uses: olegtarasov/get-tag@v2.1 id: tag-name - - name: Build and push + - name: Build apollo uses: docker/build-push-action@v3 with: push: true context: . file: apollo/Dockerfile tags: | - ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}:sha-${{ steps.short-sha.outputs.sha }} - ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}:${{ steps.tag-name.outputs.tag }} + ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/apollo:sha-${{ steps.short-sha.outputs.sha }} + ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/apollo:${{ steps.tag-name.outputs.tag }} + + - name: Build ponder + uses: docker/build-push-action@v3 + with: + push: true + context: . + file: ponder/lnv3/Dockerfile + tags: | + ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:sha-${{ steps.short-sha.outputs.sha }} + ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/ponder:${{ steps.tag-name.outputs.tag }} + + diff --git a/ponder/lnv3/Dockerfile b/ponder/lnv3/Dockerfile new file mode 100644 index 0000000..1e9b96d --- /dev/null +++ b/ponder/lnv3/Dockerfile @@ -0,0 +1,11 @@ +FROM node:21-alpine + +COPY . /app + +RUN cd /app && \ + yarn install && \ + yarn codegen + +WORKDIR /app + +CMD ["yarn", "start"]