Skip to content

Commit

Permalink
Build final docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
NickVolynkin committed Jun 15, 2023
1 parent cae4312 commit 4ab7f50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Check and build Dockerfile
on:
push:
branches: [ master ]
pull_request:
# pull_request:

concurrency:
group: ${{
Expand Down Expand Up @@ -43,6 +43,7 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Pull ${{ env.IMAGE_NAME }}:base
if: steps.changes.outputs.dockerfile-base == 'false'
run: docker pull ${{ env.IMAGE_NAME }}:base || true

- name: Rebuild ${{ env.IMAGE_NAME }}:base
Expand All @@ -53,7 +54,7 @@ jobs:
if: github.ref == 'refs/heads/master' && steps.changes.outputs.dockerfile-base == 'true'
run: docker push ${{ env.IMAGE_NAME }}:base

- name: Build a Docker image
- name: Rebuild ${{ env.IMAGE_NAME }}:latest
run: docker build -t ${{ env.IMAGE_NAME }}:latest .

- name: Push ${{ env.IMAGE_NAME }}:latest to GitHub registry
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ WORKDIR /proof-market-toolchain

COPY . /proof-market-toolchain

RUN ./build.sh
RUN ./build.sh \
&& mkdir /proof-market-toolchain/.config \
&& touch /proof-market-toolchain/.config/config.ini \
&& mkdir /root/.config \
&& touch /root/.config/config.ini \
&& ln -s /proof-market-toolchain/build/bin/proof-generator/proof-generator /usr/bin/proof-generator

#FROM ghcr.io/nilfoundation/proof-market-toolchain:base
#
Expand Down

0 comments on commit 4ab7f50

Please sign in to comment.