Skip to content

Commit

Permalink
Merge pull request #12 from AIBlockOfficial/docker
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
RobinP122 authored Feb 29, 2024
2 parents 365a8f2 + 58797de commit 7075ffc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ permissions:

jobs:
build:
uses: ablockofficial/platform/.github/workflows/build.yml@main
uses: aiblockofficial/platform/.github/workflows/build.yml@main
with:
REGISTRY: ${{ vars.REGISTRY }}
REPOSITORY: ${{ vars.REPOSITORY }}
scan-image:
uses: ablockofficial/platform/.github/workflows/scan-image.yml@main
uses: aiblockofficial/platform/.github/workflows/scan-image.yml@main
secrets: inherit
needs: build
with:
IMAGE: ${{ vars.REGISTRY }}/${{ vars.REPOSITORY }}:${{ github.sha }}
deploy:
uses: ablockofficial/platform/.github/workflows/deploy.yml@main
uses: aiblockofficial/platform/.github/workflows/deploy.yml@main
secrets: inherit
needs: scan-image
with:
REGION: ${{ vars.REGION }}
PROJECT_ID: ${{ vars.PROJECT_ID }}
CLUSTER_NAME: ${{ vars.CLUSTER_NAME }}
DEPLOYMENT: a-block-io
DEPLOYMENT: aiblock-dev
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM cgr.dev/chainguard/node@sha256:4a8f2fb37f0d2b34460f1a86f106c504954917561a50af1fa310f615709079d1 as build

WORKDIR /a-block
WORKDIR /aiblock

# Copy and build dependancies first
COPY package.json yarn.lock ./
Expand All @@ -14,4 +14,4 @@ RUN yarn build
FROM cgr.dev/chainguard/nginx:latest

# Copy built statc files to nginx www root
COPY --from=build /a-block/build/ /usr/share/nginx/html/.
COPY --from=build /aiblock/build/ /usr/share/nginx/html/.

0 comments on commit 7075ffc

Please sign in to comment.