Skip to content

Commit

Permalink
fix: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Nov 5, 2024
1 parent dad4460 commit 0d25171
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/docker_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ on:

jobs:
build-and-push-images:
# Add this condition to check for the label
runs-on: [self-hosted]
permissions:
contents: write
id-token: write
# Add this condition to check for the skip label
if: "!contains(github.event.head_commit.message, '[skip build]')"
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
23 changes: 0 additions & 23 deletions runner.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,6 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
RUN mkdir -p /root/.local/bin && \
echo 'export PATH="/root/.local/bin:$PATH"' >> /root/.bashrc

# Create necessary directories
RUN mkdir -p /hdp-runner/build/compiled_cairo

# Clone the program registry and set up required program directories
RUN git clone https://github.com/petscheit/cairo-program-registry-new.git /hdp-runner/cairo-programs

# Define environment variables for program hashes, which you can override at build time
ARG HDP_PROGRAM_HASH
ARG DRY_RUN_PROGRAM_HASH

# Clone the program registry and copy the required program.json files
RUN rm -rf /hdp-runner/cairo-programs && \
git clone https://github.com/petscheit/cairo-program-registry-new.git /hdp-runner/cairo-programs && \
if [ -f "/hdp-runner/cairo-programs/$HDP_PROGRAM_HASH/program.json" ]; then \
cp "/hdp-runner/cairo-programs/$HDP_PROGRAM_HASH/program.json" "/hdp-runner/build/hdp.json"; \
else \
echo "Error: program.json for HDP_PROGRAM_HASH not found." && exit 1; \
fi && \
if [ -f "/hdp-runner/cairo-programs/$DRY_RUN_PROGRAM_HASH/program.json" ]; then \
cp "/hdp-runner/cairo-programs/$DRY_RUN_PROGRAM_HASH/program.json" "/hdp-runner/build/dry_run_program.json"; \
else \
echo "Error: program.json for DRY_RUN_PROGRAM_HASH not found." && exit 1; \
fi

# Copy the rest of the application source
COPY . .
Expand Down

0 comments on commit 0d25171

Please sign in to comment.