Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hooopo committed May 24, 2023
1 parent 1a3c4fd commit 8415b3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM ruby:3.2

# Set the working directory
WORKDIR /app
WORKDIR /github/workspace

# Install MySQL client and development libraries
RUN apt-get update -qq && \
Expand All @@ -19,15 +19,15 @@ ENV ACCESS_TOKEN=$ACCESS_TOKEN
ENV REPO_FULL_NAME=$REPO_FULL_NAME

# Copy the Gemfile and Gemfile.lock
COPY Gemfile* /app/
COPY Gemfile* ./

# Install dependencies
RUN bundle config set --local without 'development test' && \
bundle install --jobs $(nproc) --retry 3 && \
rm -rf /usr/local/bundle/cache/*.gem

# Copy the rest of the application
COPY . /app/
COPY . .

# Run the migration and sync GitHub Repo Data scripts
CMD bundle exec rails runner "RetryableRake.db_create" && \
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ runs:

# Pass the inputs and secret values as environment variables to the Docker container
env:
DATABASE_URL: ${{ inputs.database_url }}
ACCESS_TOKEN: ${{ inputs.access_token }}
REPO_FULL_NAME: ${{ inputs.repo_full_name }}
DATABASE_URL: ${{ inputs.database-url }}
ACCESS_TOKEN: ${{ inputs.access-token }}
REPO_FULL_NAME: ${{ inputs.repo-full-name }}

0 comments on commit 8415b3d

Please sign in to comment.