Browse Source

Test

CLDC-3091-asset-paths
Kat 4 months ago
parent
commit
cd6cbac0eb
  1. 2
      .github/workflows/aws_deploy.yml
  2. 4
      Dockerfile

2
.github/workflows/aws_deploy.yml

@ -70,7 +70,7 @@ jobs:
echo "Error: Deployment to production environment is not allowed as there is no docker image (i.e. the AWS deploy on staging was unsuccessful for this commit)." echo "Error: Deployment to production environment is not allowed as there is no docker image (i.e. the AWS deploy on staging was unsuccessful for this commit)."
exit 1 exit 1
fi fi
docker build -t $registry/$repository:$commit_tag . --target=production docker build -t $registry/$repository:$commit_tag . --target=production --build-arg CONCURRENCY_TAG=${{ inputs.concurrency_tag }}
docker push $registry/$repository:$commit_tag docker push $registry/$repository:$commit_tag
deploy: deploy:

4
Dockerfile

@ -1,6 +1,8 @@
FROM ruby:3.1.4-alpine3.18 as base FROM ruby:3.1.4-alpine3.18 as base
WORKDIR /app WORKDIR /app
ARG CONCURRENCY_TAG
ENV CONCURRENCY_TAG=${CONCURRENCY_TAG}
# Add the timezone as it's not configured by default in Alpine # Add the timezone as it's not configured by default in Alpine
RUN apk add --update --no-cache tzdata && \ RUN apk add --update --no-cache tzdata && \
@ -24,7 +26,7 @@ RUN yarn install --frozen-lockfile
COPY . /app/ COPY . /app/
RUN bundle exec rake assets:precompile RUN CONCURRENCY_TAG=${CONCURRENCY_TAG} bundle exec rails assets:precompile
ENV PORT=8080 ENV PORT=8080
EXPOSE ${PORT} EXPOSE ${PORT}

Loading…
Cancel
Save