Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Update Github build workflow
  • Loading branch information
Kagemaru committed Aug 30, 2022
1 parent 45036e2 commit b30daeb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/reusable-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,27 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Restore artifacts
uses:
- name: Login to the puzzle registry
uses: docker/login-action@v1
with:
registry: registry.puzzle.ch
username: ${{ secrets.PUZZLE_REGISTRY_USERNAME }}
password: ${{ secrets.PUZZLE_REGISTRY_TOKEN }}
- name: Restore artifacts
uses: actions/download-artifact@v3
with:
name: gems
path: /app-src/vendor/bundle
- name: Build and push
uses: docker/build-push-action@v2
with:
file: Dockerfile
push: true
tags: ${{ env.DECIDIM_IMAGE_REPO }}:latest
tags: ${{ env.DECIDIM_IMAGE_REPO }}:latest
- name: Store artifacts
uses: actions/upload-artifact@v3
with:
name: gems
path: /app-src/vendor/bundle
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ COPY . /app-src
WORKDIR /app-src

# Run deployment
RUN touch "$BUNDLE_APP_CONFIG" \
&& chmod 777 "$BUNDLE_APP_CONFIG" \
&& bundle config set --local deployment 'true' \
#RUN mkdir -p `dirname "${BUNDLE_APP_CONFIG}"` \
# && touch "${BUNDLE_APP_CONFIG}" \
# && chmod 777 "${BUNDLE_APP_CONFIG}" \
RUN bundle env
RUN bundle config set --local deployment 'true' \
&& bundle config set --local without ${BUNDLE_WITHOUT} \
&& bundle package \
&& bundle install \
Expand Down

0 comments on commit b30daeb

Please sign in to comment.