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"]