Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Precompile applications under `prod` profile
- run: rebar3 as prod compile
# Clean out those applications that MUST be compiled on the target system:
# 1. Applications that employ native code in the form of NIFs or port drivers.
- run: >
for app in $(grep -Rl -F 'port_specs' _build/prod/lib/*/rebar.config | cut -d'/' -f4)
do
rebar3 as prod clean --apps $app
done
- uses: valitydev/action-deploy-docker@v2
with:
registry-username: ${{ github.actor }}
Expand Down