Skip to content

Commit

Permalink
chore: publish as docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves authored Apr 21, 2024
1 parent eadf3d1 commit 551c953
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/
8 changes: 7 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ jobs:
uses: cloud-cli/workflows/.github/workflows/npm-build-release.yml@main
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build:
needs: [release]
uses: cloud-cli/workflows/.github/workflows/docker-ghcr-build.yml@main
with:
name: cloud-cli/d0
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ghcr.io/cloud-cli/node:latest
COPY --chown=node:node . /home/app
ENV NODE_ENV=production
RUN cd /home/app && npm i && npx tsc && rm -r src/

0 comments on commit 551c953

Please sign in to comment.