Skip to content

Commit

Permalink
ci: update gleam version and fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgleam committed Aug 29, 2024
1 parent a6bab6f commit 5bf8fb0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Gleam, Beam
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.4.1"
rebar3-version: "3"
- run: gleam deps download
- run: gleam build

- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.2.0"
gleam-version: "1.4.1"
rebar3-version: "3"
- name: "Start Backend"
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.2.0"
gleam-version: "1.4.1"
rebar3-version: "3"
- name: "Start Backend"
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.2.0"
gleam-version: "1.4.1"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
Expand Down
18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ FROM ghcr.io/gleam-lang/gleam:v1.4.1-erlang-alpine
# Add project code
COPY . /build/

# Compile the Gleam application
RUN apk add gcc build-base \
&& cd /build \
&& gleam export erlang-shipment \
&& mv build/erlang-shipment /app \
&& rm -r /build \
&& apk del gcc build-base \
&& addgroup -S crappy \
&& adduser -S crappy -G crappy \
&& chown -R crappy /app
# Compile the project
RUN cd /build \
&& gleam export erlang-shipment \
&& mv build/erlang-shipment /app \
&& rm -r /build \
&& addgroup -S crappy \
&& adduser -S crappy -G crappy \
&& chown -R crappy /app

# Run the application
USER crappy
Expand Down

0 comments on commit 5bf8fb0

Please sign in to comment.