Skip to content

Commit

Permalink
ci: fix build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgleam committed Aug 29, 2024
1 parent 5bf8fb0 commit e3f33ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
rebar3-version: "3"
- run: gleam deps download
- run: gleam build
- run: cd build && gleam export erlang-shipment

- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ FROM ghcr.io/gleam-lang/gleam:v1.4.1-erlang-alpine
COPY . /build/

# Compile the project
RUN cd /build \
&& gleam export erlang-shipment \
&& mv build/erlang-shipment /app \
&& rm -r /build \
RUN mv /build/erlang-shipment /app \
&& addgroup -S crappy \
&& adduser -S crappy -G crappy \
&& chown -R crappy /app
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ install-tailwind-cli:
e2e-test:
cd e2e && yarn start
docker-build:
docker build -t crappy-board:latest .
cd build && gleam export erlang-shipment && cd .. && docker build -t crappy-board:latest .

0 comments on commit e3f33ca

Please sign in to comment.