Skip to content

Commit 128a7c4

Browse files
committed
Update Dockerfile & CI
1 parent e4f510b commit 128a7c4

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/docker.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
branches:
6+
- "!*"
7+
tags:
8+
- "v*"
9+
10+
jobs:
11+
docker:
12+
name: Build Docker Image
13+
runs-on: ubuntu-latest
14+
needs: pre-commit
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Build and push
19+
uses: docker/build-push-action@v1
20+
with:
21+
username: _json_key
22+
password: ${{ secrets.GAR_JSON_KEY }}
23+
registry: europe-west4-docker.pkg.dev
24+
repository: stakewiselabs/public/oracle
25+
tag_with_ref: true
26+
tag_with_sha: true

Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ FROM node:16-alpine
22
WORKDIR /app
33
COPY . ./
44
RUN yarn install
5-
6-
CMD ["/bin/sh", "-c", "yarn prepare:${NETWORK} && yarn codegen && yarn build && yarn create:local && yarn deploy:local"]
7-

0 commit comments

Comments
 (0)