Skip to content

Commit

Permalink
update(carbon): actions
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTFM committed Nov 23, 2023
1 parent ab6fea1 commit 79278b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
- name: Fetch Key
run: |
echo "${{ secrets.GO_MODULE_PRIVATE_KEY }}" > p_key
mkdir -p ~/.ssh
cp p_key ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
- name: run tests
run: go test -json ./... > test.json
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ ENV GOPROXY=https://proxy.golang.org,direct

RUN git config --global url."[email protected]:Switcheo/carbon".insteadOf https://github.com/Switcheo/carbon

RUN mkdir -p /root/.ssh
RUN chmod 0700 /root/.ssh
COPY p_key /root/.ssh/id_rsa

RUN apt-get update && apt-get install -y make gcc gawk bison libc-dev openssh-client

RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config

RUN go build -o watcher ./cmd/watcher/main.go

FROM ubuntu:latest as production
Expand Down

0 comments on commit 79278b5

Please sign in to comment.