diff --git a/Dockerfile b/Dockerfile index 18fea2d..3d9945c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \ @@ -19,7 +19,7 @@ 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' && \ @@ -27,7 +27,7 @@ RUN bundle config set --local without 'development test' && \ 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" && \ diff --git a/action.yml b/action.yml index a28db36..10fd070 100644 --- a/action.yml +++ b/action.yml @@ -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 }} \ No newline at end of file + DATABASE_URL: ${{ inputs.database-url }} + ACCESS_TOKEN: ${{ inputs.access-token }} + REPO_FULL_NAME: ${{ inputs.repo-full-name }} \ No newline at end of file