Skip to content

Commit

Permalink
Update Dockerfile & CI
Browse files Browse the repository at this point in the history
  • Loading branch information
unxnn committed Dec 15, 2021
1 parent e4f510b commit 128a7c4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker

on:
push:
branches:
- "!*"
tags:
- "v*"

jobs:
docker:
name: Build Docker Image
runs-on: ubuntu-latest
needs: pre-commit
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and push
uses: docker/build-push-action@v1
with:
username: _json_key
password: ${{ secrets.GAR_JSON_KEY }}
registry: europe-west4-docker.pkg.dev
repository: stakewiselabs/public/oracle
tag_with_ref: true
tag_with_sha: true
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ FROM node:16-alpine
WORKDIR /app
COPY . ./
RUN yarn install

CMD ["/bin/sh", "-c", "yarn prepare:${NETWORK} && yarn codegen && yarn build && yarn create:local && yarn deploy:local"]

0 comments on commit 128a7c4

Please sign in to comment.