Elixir Phoenix Builds Failing from Github Actions

I can deploy from my local machine fine using the command fly deploy -a indiepaper-dev , but running it through Github Actions fails

Log

2021-05-28T10:01:06.5599967Z ##[section]Starting: Request a runner to run this job
2021-05-28T10:01:06.8523491Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2021-05-28T10:01:06.8523635Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-05-28T10:01:06.8524002Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-05-28T10:01:07.0106147Z ##[section]Finishing: Request a runner to run this job
2021-05-28T10:01:15.7607482Z Current runner version: '2.278.0'
2021-05-28T10:01:15.7635228Z ##[group]Operating System
2021-05-28T10:01:15.7636277Z Ubuntu
2021-05-28T10:01:15.7636760Z 20.04.2
2021-05-28T10:01:15.7637273Z LTS
2021-05-28T10:01:15.7637854Z ##[endgroup]
2021-05-28T10:01:15.7638460Z ##[group]Virtual Environment
2021-05-28T10:01:15.7639219Z Environment: ubuntu-20.04
2021-05-28T10:01:15.7639844Z Version: 20210524.1
2021-05-28T10:01:15.7641004Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20210524.1/images/linux/Ubuntu2004-README.md
2021-05-28T10:01:15.7642717Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210524.1
2021-05-28T10:01:15.7643495Z ##[endgroup]
2021-05-28T10:01:15.7645369Z ##[group]GITHUB_TOKEN Permissions
2021-05-28T10:01:15.7646305Z Actions: write
2021-05-28T10:01:15.7646741Z Checks: write
2021-05-28T10:01:15.7647124Z Contents: write
2021-05-28T10:01:15.7647595Z Deployments: write
2021-05-28T10:01:15.7648101Z Issues: write
2021-05-28T10:01:15.7648548Z Metadata: read
2021-05-28T10:01:15.7648987Z Packages: write
2021-05-28T10:01:15.7649593Z PullRequests: write
2021-05-28T10:01:15.7650216Z RepositoryProjects: write
2021-05-28T10:01:15.7650791Z SecurityEvents: write
2021-05-28T10:01:15.7651330Z Statuses: write
2021-05-28T10:01:15.7652068Z ##[endgroup]
2021-05-28T10:01:15.7655087Z Prepare workflow directory
2021-05-28T10:01:15.8577068Z Prepare all required actions
2021-05-28T10:01:15.8585666Z Getting action download info
2021-05-28T10:01:16.2359482Z Download action repository 'actions/checkout@v2'
2021-05-28T10:01:17.9231737Z Download action repository 'superfly/flyctl-actions@1.1'
2021-05-28T10:01:18.2768204Z ##[group]Build container for action use: '/home/runner/work/_actions/superfly/flyctl-actions/1.1/Dockerfile'.
2021-05-28T10:01:18.2844668Z ##[command]/usr/bin/docker build -t 8a33c1:9644745ed70d410895efe9b3ed82dce1 -f "/home/runner/work/_actions/superfly/flyctl-actions/1.1/Dockerfile" "/home/runner/work/_actions/superfly/flyctl-actions/1.1"
2021-05-28T10:01:18.5403932Z Sending build context to Docker daemon  17.92kB
2021-05-28T10:01:18.5405249Z 
2021-05-28T10:01:18.5911701Z Step 1/5 : FROM alpine
2021-05-28T10:01:18.8140173Z latest: Pulling from library/alpine
2021-05-28T10:01:18.8141732Z Digest: sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f
2021-05-28T10:01:18.8143192Z Status: Downloaded newer image for alpine:latest
2021-05-28T10:01:18.8144080Z  ---> 6dbb9cc54074
2021-05-28T10:01:18.8144898Z Step 2/5 : RUN apk add --no-cache curl
2021-05-28T10:01:18.8338555Z  ---> Running in a813bd576c0c
2021-05-28T10:01:19.2582602Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
2021-05-28T10:01:19.9285913Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
2021-05-28T10:01:19.9288006Z (1/5) Installing ca-certificates (20191127-r5)
2021-05-28T10:01:19.9289368Z (2/5) Installing brotli-libs (1.0.9-r3)
2021-05-28T10:01:19.9290557Z (3/5) Installing nghttp2-libs (1.42.0-r1)
2021-05-28T10:01:19.9291773Z (4/5) Installing libcurl (7.77.0-r0)
2021-05-28T10:01:19.9293162Z (5/5) Installing curl (7.77.0-r0)
2021-05-28T10:01:19.9294344Z Executing busybox-1.32.1-r6.trigger
2021-05-28T10:01:19.9296241Z Executing ca-certificates-20191127-r5.trigger
2021-05-28T10:01:19.9297362Z OK: 8 MiB in 19 packages
2021-05-28T10:01:20.0232927Z Removing intermediate container a813bd576c0c
2021-05-28T10:01:20.0236428Z  ---> 168c71e353e8
2021-05-28T10:01:20.0237218Z Step 3/5 : RUN curl -L https://fly.io/install.sh | FLYCTL_INSTALL=/usr/local sh
2021-05-28T10:01:20.0406094Z  ---> Running in fdcfc8c13945
2021-05-28T10:01:20.3429565Z e[91m  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2021-05-28T10:01:20.3431487Z                                  Dload  Upload   Total   Spent    Left  Speed
2021-05-28T10:01:20.3432260Z 
2021-05-28T10:01:20.4721895Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0e[0me[91m
2021-05-28T10:01:20.4768118Z e[0me[91m1e[0me[91m0e[0me[91m0e[0me[91m e[0me[91m e[0me[91m1e[0me[91m4e[0me[91m1e[0me[91m1e[0me[91m e[0me[91m e[0me[91m e[0me[91m e[0me[91m0e[0me[91m e[0me[91m e[0me[91m1e[0me[91m4e[0me[91m1e[0me[91m1e[0me[91m e[0me[91m e[0me[91m e[0me[91m e[0me[91m0e[0me[91m e[0me[91m    0  11006      0 --e[0me[91m:--:-- --:--:-- --:--:-- 11023
2021-05-28T10:01:23.1545796Z e[0me[91m
2021-05-28T10:01:23.2544368Z ######################################################################## 100.0%e[0me[91m
2021-05-28T10:01:23.3546857Z #########                                                                 13.7%e[0me[91m
2021-05-28T10:01:23.3597105Z ########################e[0me[91m###########################################       93.3%e[0me[91m
2021-05-28T10:01:23.3597788Z ################e[0me[91m######################################################## e[0me[91m100.0%e[0me[91m
2021-05-28T10:01:23.7603078Z e[0mflyctl v0.0.220 linux/amd64 Commit: 2f06aed BuildDate: 2021-05-14T17:07:51Z
2021-05-28T10:01:23.7617155Z flyctl was installed successfully to /usr/local/bin/flyctl
2021-05-28T10:01:23.7633196Z Run 'flyctl --help' to get started
2021-05-28T10:01:25.0154836Z Removing intermediate container fdcfc8c13945
2021-05-28T10:01:25.0155387Z  ---> 8a0be27101a5
2021-05-28T10:01:25.0155872Z Step 4/5 : COPY entrypoint.sh /entrypoint.sh
2021-05-28T10:01:26.0096608Z  ---> 4396c8b4b524
2021-05-28T10:01:26.0097236Z Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
2021-05-28T10:01:26.0355515Z  ---> Running in 44eeb9376a7a
2021-05-28T10:01:27.0103589Z Removing intermediate container 44eeb9376a7a
2021-05-28T10:01:27.0104257Z  ---> eb57c985005f
2021-05-28T10:01:27.0107447Z Successfully built eb57c985005f
2021-05-28T10:01:27.0174100Z Successfully tagged 8a33c1:9644745ed70d410895efe9b3ed82dce1
2021-05-28T10:01:27.0194969Z ##[endgroup]
2021-05-28T10:01:27.0405608Z ##[group]Run actions/checkout@v2
2021-05-28T10:01:27.0406205Z with:
2021-05-28T10:01:27.0406702Z   repository: indiepaper/indiepaper
2021-05-28T10:01:27.0407692Z   token: ***
2021-05-28T10:01:27.0408096Z   ssh-strict: true
2021-05-28T10:01:27.0408638Z   persist-credentials: true
2021-05-28T10:01:27.0409124Z   clean: true
2021-05-28T10:01:27.0409534Z   fetch-depth: 1
2021-05-28T10:01:27.0409926Z   lfs: false
2021-05-28T10:01:27.0410335Z   submodules: false
2021-05-28T10:01:27.0410713Z env:
2021-05-28T10:01:27.0411559Z   FLY_API_TOKEN: ***
2021-05-28T10:01:27.0411921Z ##[endgroup]
2021-05-28T10:01:27.2834589Z Syncing repository: indiepaper/indiepaper
2021-05-28T10:01:27.2835323Z ##[group]Getting Git version info
2021-05-28T10:01:27.2836320Z Working directory is '/home/runner/work/indiepaper/indiepaper'
2021-05-28T10:01:27.2836937Z [command]/usr/bin/git version
2021-05-28T10:01:27.2990018Z git version 2.31.1
2021-05-28T10:01:27.3010331Z ##[endgroup]
2021-05-28T10:01:27.3018338Z Deleting the contents of '/home/runner/work/indiepaper/indiepaper'
2021-05-28T10:01:27.3022367Z ##[group]Initializing the repository
2021-05-28T10:01:27.3026355Z [command]/usr/bin/git init /home/runner/work/indiepaper/indiepaper
2021-05-28T10:01:27.3111890Z hint: Using 'master' as the name for the initial branch. This default branch name
2021-05-28T10:01:27.3113335Z hint: is subject to change. To configure the initial branch name to use in all
2021-05-28T10:01:27.3114355Z hint: of your new repositories, which will suppress this warning, call:
2021-05-28T10:01:27.3115011Z hint: 
2021-05-28T10:01:27.3116128Z hint: 	git config --global init.defaultBranch <name>
2021-05-28T10:01:27.3116733Z hint: 
2021-05-28T10:01:27.3117525Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2021-05-28T10:01:27.3118599Z hint: 'development'. The just-created branch can be renamed via this command:
2021-05-28T10:01:27.3119272Z hint: 
2021-05-28T10:01:27.3119822Z hint: 	git branch -m <name>
2021-05-28T10:01:27.3122901Z Initialized empty Git repository in /home/runner/work/indiepaper/indiepaper/.git/
2021-05-28T10:01:27.3132208Z [command]/usr/bin/git remote add origin https://github.com/indiepaper/indiepaper
2021-05-28T10:01:27.3179633Z ##[endgroup]
2021-05-28T10:01:27.3180471Z ##[group]Disabling automatic garbage collection
2021-05-28T10:01:27.3187352Z [command]/usr/bin/git config --local gc.auto 0
2021-05-28T10:01:27.3229249Z ##[endgroup]
2021-05-28T10:01:27.3237764Z ##[group]Setting up auth
2021-05-28T10:01:27.3246001Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-05-28T10:01:27.3284191Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-05-28T10:01:27.3657216Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-05-28T10:01:27.3706753Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-05-28T10:01:27.3912635Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2021-05-28T10:01:27.3959763Z ##[endgroup]
2021-05-28T10:01:27.3960555Z ##[group]Fetching the repository
2021-05-28T10:01:27.3968866Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +48625567d97d1bb3fee2f8f1889b03649acf4677:refs/remotes/origin/develop
2021-05-28T10:01:27.6614702Z remote: Enumerating objects: 95, done.              
2021-05-28T10:01:27.6768268Z remote: Total 95 (delta 2), reused 71 (delta 2), pack-reused 0        
2021-05-28T10:01:27.6956473Z From https://github.com/indiepaper/indiepaper
2021-05-28T10:01:27.6957903Z  * [new ref]         48625567d97d1bb3fee2f8f1889b03649acf4677 -> origin/develop
2021-05-28T10:01:27.6982107Z ##[endgroup]
2021-05-28T10:01:27.6982952Z ##[group]Determining the checkout info
2021-05-28T10:01:27.6984606Z ##[endgroup]
2021-05-28T10:01:27.6985232Z ##[group]Checking out the ref
2021-05-28T10:01:27.6989662Z [command]/usr/bin/git checkout --progress --force -B develop refs/remotes/origin/develop
2021-05-28T10:01:27.7106668Z Switched to a new branch 'develop'
2021-05-28T10:01:27.7122556Z Branch 'develop' set up to track remote branch 'develop' from 'origin'.
2021-05-28T10:01:27.7123458Z ##[endgroup]
2021-05-28T10:01:27.7160913Z [command]/usr/bin/git log -1 --format='%H'
2021-05-28T10:01:27.7240363Z '48625567d97d1bb3fee2f8f1889b03649acf4677'
2021-05-28T10:01:27.7337046Z ##[group]Run superfly/flyctl-actions@1.1
2021-05-28T10:01:27.7337498Z with:
2021-05-28T10:01:27.7337959Z   args: deploy -a indiepaper-dev 
2021-05-28T10:01:27.7338465Z env:
2021-05-28T10:01:27.7339393Z   FLY_API_TOKEN: ***
2021-05-28T10:01:27.7339803Z ##[endgroup]
2021-05-28T10:01:27.7370358Z ##[command]/usr/bin/docker run --name a33c19644745ed70d410895efe9b3ed82dce1_e638a9 --label 8a33c1 --workdir /github/workspace --rm -e FLY_API_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/indiepaper/indiepaper":"/github/workspace" 8a33c1:9644745ed70d410895efe9b3ed82dce1 deploy -a indiepaper-dev
2021-05-28T10:01:28.1021875Z e[1mDeploying indiepaper-deve[0m
2021-05-28T10:01:28.1039661Z e[32m==> Validating app configuratione[0m
2021-05-28T10:01:32.7832861Z e[38;5;252m--> Validating app configuration donee[0m
2021-05-28T10:01:32.7834275Z e[1mServicese[0m
2021-05-28T10:01:32.7836207Z TCP 80/443 ⇢ 4000
2021-05-28T10:01:32.7928949Z e[32m==> Creating build contexte[0m
2021-05-28T10:01:32.7929590Z e[38;5;252m--> Creating build context donee[0m
2021-05-28T10:01:32.7930199Z e[32m==> Building image with Dockere[0m
2021-05-28T10:01:32.8821646Z Step 1/30 : FROM hexpm/elixir:1.11.2-erlang-23.3.2-alpine-3.13.3 AS build
2021-05-28T10:01:33.0392342Z 1.11.2-erlang-23.3.2-alpine-3.13.3: Pulling from hexpm/elixir
2021-05-28T10:01:33.1186517Z 9aae54b2144e: Pulling fs layer
2021-05-28T10:01:33.1187424Z 77eba9df4d93: Pulling fs layer
2021-05-28T10:01:33.1188395Z 3bab089c12dc: Pulling fs layer
2021-05-28T10:01:33.1189191Z ef428eef9d77: Pulling fs layer
2021-05-28T10:01:33.1208435Z ef428eef9d77: Waiting
2021-05-28T10:01:33.1791154Z 77eba9df4d93: Verifying Checksum
2021-05-28T10:01:33.1800875Z 77eba9df4d93: Download complete
2021-05-28T10:01:33.2059804Z 9aae54b2144e: Verifying Checksum
2021-05-28T10:01:33.2060437Z 9aae54b2144e: Download complete
2021-05-28T10:01:33.2960452Z ef428eef9d77: Verifying Checksum
2021-05-28T10:01:33.2961313Z ef428eef9d77: Download complete
2021-05-28T10:01:33.4113963Z 3bab089c12dc: Verifying Checksum
2021-05-28T10:01:33.4114815Z 3bab089c12dc: Download complete
2021-05-28T10:01:33.4163789Z 9aae54b2144e: Pull complete
2021-05-28T10:01:33.7286756Z 77eba9df4d93: Pull complete
2021-05-28T10:01:34.5775204Z 3bab089c12dc: Pull complete
2021-05-28T10:01:34.7500306Z ef428eef9d77: Pull complete
2021-05-28T10:01:34.7547517Z Digest: sha256:cd90464db9c74f0ca6f66ad140f5e3d52a95534e86b3645ac6925e16cef3f09f
2021-05-28T10:01:34.7565426Z Status: Downloaded newer image for hexpm/elixir:1.11.2-erlang-23.3.2-alpine-3.13.3
2021-05-28T10:01:34.7573901Z  ---> 90ddceef09bf
2021-05-28T10:01:34.7574713Z Step 2/30 : RUN apk add --no-cache build-base npm
2021-05-28T10:01:34.7749607Z  ---> Running in 1b7b8b56c50b
2021-05-28T10:01:35.0479502Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
2021-05-28T10:01:35.1413203Z fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
2021-05-28T10:01:37.4888716Z Executing busybox-1.32.1-r3.trigger
2021-05-28T10:01:37.4946955Z Executing ca-certificates-20191127-r5.trigger
2021-05-28T10:01:37.5329547Z OK: 261 MiB in 48 packages
2021-05-28T10:01:42.6767779Z  ---> c494acbcf756
2021-05-28T10:01:42.6768386Z Step 3/30 : WORKDIR /app
2021-05-28T10:01:42.6961619Z  ---> Running in 5610daf6b836
2021-05-28T10:01:43.0342760Z  ---> a307010c20da
2021-05-28T10:01:43.0343819Z Step 4/30 : RUN mix local.hex --force &&     mix local.rebar --force
2021-05-28T10:01:43.0517878Z  ---> Running in f355301569cb
2021-05-28T10:01:44.0096935Z * creating /root/.mix/archives/hex-0.21.2
2021-05-28T10:01:44.5318245Z * creating /root/.mix/rebar
2021-05-28T10:01:44.7764132Z * creating /root/.mix/rebar3
2021-05-28T10:01:45.2790901Z  ---> 312713ac3117
2021-05-28T10:01:45.2791445Z Step 5/30 : ENV MIX_ENV=prod
2021-05-28T10:01:45.2994065Z  ---> Running in fd6b8ecbcce8
2021-05-28T10:01:46.0202254Z  ---> 16256f81f5b2
2021-05-28T10:01:46.0203004Z Step 6/30 : ENV SECRET_KEY_BASE=nokey
2021-05-28T10:01:46.0357162Z  ---> Running in f02c8b85ce3a
2021-05-28T10:01:47.0200571Z  ---> 935fe7f723df
2021-05-28T10:01:47.0201360Z Step 7/30 : COPY mix.exs mix.lock ./
2021-05-28T10:01:48.0207820Z  ---> 6c3656971c92
2021-05-28T10:01:48.0208419Z Step 8/30 : COPY config config
2021-05-28T10:01:49.0239734Z  ---> cca6113b1128
2021-05-28T10:01:49.0240954Z Step 9/30 : RUN mix deps.get --only prod &&     mix deps.compile
2021-05-28T10:01:49.0369812Z  ---> Running in 8ff4bf5e99e5
2021-05-28T10:01:50.0036338Z Resolving Hex dependencies...
2021-05-28T10:01:50.0220016Z Dependency resolution completed:
2021-05-28T10:01:50.9921815Z ==> socket
2021-05-28T10:01:50.9926712Z Compiling 11 files (.ex)
2021-05-28T10:01:52.7421934Z Generated socket app
2021-05-28T10:01:52.7635062Z ==> connection
2021-05-28T10:01:52.7639432Z Compiling 1 file (.ex)
2021-05-28T10:01:53.0561531Z Generated connection app
2021-05-28T10:01:53.0831361Z ==> dns
2021-05-28T10:01:53.0834775Z Compiling 7 files (.ex)
2021-05-28T10:01:53.2803083Z Generated dns app
2021-05-28T10:01:53.3156481Z ==> burnex
2021-05-28T10:01:53.3156912Z Compiling 1 file (.ex)
2021-05-28T10:01:57.5686939Z Generated burnex app
2021-05-28T10:01:57.5912891Z ==> gettext
2021-05-28T10:01:57.5913407Z Compiling 1 file (.yrl)
2021-05-28T10:01:57.6207081Z Compiling 1 file (.erl)
2021-05-28T10:01:57.7642330Z Compiling 20 files (.ex)
2021-05-28T10:01:58.9552370Z Generated gettext app
2021-05-28T10:01:59.3105804Z ===> Compiling ranch
2021-05-28T10:02:00.4676423Z ===> Compiling telemetry
2021-05-28T10:02:00.8898462Z ==> telemetry_metrics
2021-05-28T10:02:00.8899023Z Compiling 7 files (.ex)
2021-05-28T10:02:01.1481919Z Generated telemetry_metrics app
2021-05-28T10:02:01.5977381Z ===> Compiling telemetry_poller
2021-05-28T10:02:02.0773337Z ==> decimal
2021-05-28T10:02:02.0778113Z Compiling 4 files (.ex)
2021-05-28T10:02:03.1556175Z Generated decimal app
2021-05-28T10:02:03.2005536Z ==> jason
2021-05-28T10:02:03.2006205Z Compiling 8 files (.ex)
2021-05-28T10:02:05.5216065Z Generated jason app
2021-05-28T10:02:05.5410951Z ==> sweet_xml
2021-05-28T10:02:05.5416255Z Compiling 1 file (.ex)
2021-05-28T10:02:05.8415202Z Generated sweet_xml app
2021-05-28T10:02:05.8718954Z ==> ex_phone_number
2021-05-28T10:02:05.8719448Z Compiling 21 files (.ex)
2021-05-28T10:02:09.0794260Z Generated ex_phone_number app
2021-05-28T10:02:09.1329126Z ==> db_connection
2021-05-28T10:02:09.1329955Z Compiling 14 files (.ex)
2021-05-28T10:02:10.3963848Z Generated db_connection app
2021-05-28T10:02:10.4145321Z ==> luhn
2021-05-28T10:02:10.4151002Z Compiling 1 file (.ex)
2021-05-28T10:02:10.4539276Z Generated luhn app
2021-05-28T10:02:10.4838545Z ==> ecto
2021-05-28T10:02:10.4838957Z Compiling 56 files (.ex)
2021-05-28T10:02:17.9196603Z Generated ecto app
2021-05-28T10:02:17.9404806Z ==> phoenix_pubsub
2021-05-28T10:02:17.9408319Z Compiling 11 files (.ex)
2021-05-28T10:02:18.7399416Z Generated phoenix_pubsub app
2021-05-28T10:02:19.0844504Z ===> Compiling cowlib
2021-05-28T10:02:35.2349917Z ===> Compiling cowboy
2021-05-28T10:02:37.6527204Z ===> Compiling cowboy_telemetry
2021-05-28T10:02:38.0046487Z ==> ecto_commons
2021-05-28T10:02:38.0047805Z Compiling 12 files (.ex)
2021-05-28T10:02:38.3143928Z e[91mwarning: :http_uri.parse/1 defined in application :inets is used by the current application but the current application does not directly depend on :inets. To fix this, you must do one of:
2021-05-28T10:02:38.3144847Z 
2021-05-28T10:02:38.3145623Z   1. If :inets is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs
2021-05-28T10:02:38.3146269Z 
2021-05-28T10:02:38.3146851Z   2. If :inets is a dependency, make sure it is listed under "def deps" in your mix.exs
2021-05-28T10:02:38.3147354Z 
2021-05-28T10:02:38.3148478Z   3. In case you don't want to add a requirement to :inets, you may optionally skip this warning by adding [xref: [exclude: :http_uri]] to your "def project" in mix.exs
2021-05-28T10:02:38.3149208Z 
2021-05-28T10:02:38.3149951Z   lib/validators/url.ex:74: EctoCommons.URLValidator.do_validate_url/3
2021-05-28T10:02:38.3150606Z 
2021-05-28T10:02:38.3416618Z e[0mGenerated ecto_commons app
2021-05-28T10:02:38.3584332Z ==> mime
2021-05-28T10:02:38.3585939Z Compiling 2 files (.ex)
2021-05-28T10:02:39.9258777Z Generated mime app
2021-05-28T10:02:39.9526400Z ==> postgrex
2021-05-28T10:02:39.9526899Z Compiling 61 files (.ex)
2021-05-28T10:02:46.8051010Z Generated postgrex app
2021-05-28T10:02:46.8836084Z ==> ecto_sql
2021-05-28T10:02:46.8836611Z Compiling 26 files (.ex)
2021-05-28T10:02:48.9542151Z Generated ecto_sql app
2021-05-28T10:02:48.9760695Z ==> plug_crypto
2021-05-28T10:02:48.9763303Z Compiling 5 files (.ex)
2021-05-28T10:02:49.1782930Z Generated plug_crypto app
2021-05-28T10:02:49.2085130Z ==> plug
2021-05-28T10:02:49.2085521Z Compiling 1 file (.erl)
2021-05-28T10:02:49.3932779Z Compiling 41 files (.ex)
2021-05-28T10:02:50.0303662Z e[91mwarning: System.stacktrace/0 is deprecated, use __STACKTRACE__ instead
2021-05-28T10:02:50.0304481Z   lib/plug/conn/wrapper_error.ex:23
2021-05-28T10:02:50.0304836Z 
2021-05-28T10:02:52.4912088Z e[0me[91mwarning: MIME.valid?/1 is deprecated. Use MIME.extensions(type) != [] instead
2021-05-28T10:02:52.4912824Z   lib/plug/mime.ex:32: Plug.MIME.valid?/1
2021-05-28T10:02:52.4913163Z 
2021-05-28T10:02:52.5479111Z e[0mGenerated plug app
2021-05-28T10:02:52.5753861Z ==> phoenix_html
2021-05-28T10:02:52.5754583Z Compiling 8 files (.ex)
2021-05-28T10:02:53.5643064Z Generated phoenix_html app
2021-05-28T10:02:53.5958575Z ==> plug_cowboy
2021-05-28T10:02:53.5963586Z Compiling 5 files (.ex)
2021-05-28T10:02:53.8207652Z Generated plug_cowboy app
2021-05-28T10:02:53.8675647Z ==> phoenix
2021-05-28T10:02:53.8676059Z Compiling 66 files (.ex)
2021-05-28T10:02:58.2068013Z Generated phoenix app
2021-05-28T10:02:58.2527598Z ==> phoenix_live_view
2021-05-28T10:02:58.2528592Z Compiling 22 files (.ex)
2021-05-28T10:03:01.4300174Z Generated phoenix_live_view app
2021-05-28T10:03:01.4886488Z ==> phoenix_live_dashboard
2021-05-28T10:03:01.4886960Z Compiling 36 files (.ex)
2021-05-28T10:03:02.3494548Z e[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:02.3496272Z   lib/phoenix/live_dashboard/components/nav_bar_component.ex:142: Phoenix.LiveDashboard.NavBarComponent.render_content/3
2021-05-28T10:03:02.3497324Z 
2021-05-28T10:03:02.3819663Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:02.3821740Z   lib/phoenix/live_dashboard/pages/home_page.ex:176: Phoenix.LiveDashboard.HomePage.render/1
2021-05-28T10:03:02.3822847Z 
2021-05-28T10:03:02.3835801Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:02.3837003Z   lib/phoenix/live_dashboard/pages/home_page.ex:184: Phoenix.LiveDashboard.HomePage.render/1
2021-05-28T10:03:02.3837727Z 
2021-05-28T10:03:02.3848100Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:02.3849489Z   lib/phoenix/live_dashboard/pages/home_page.ex:192: Phoenix.LiveDashboard.HomePage.render/1
2021-05-28T10:03:02.3850338Z 
2021-05-28T10:03:02.5943975Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:02.5945029Z   lib/phoenix/live_dashboard/pages/os_mon_page.ex:213: Phoenix.LiveDashboard.OSMonPage.render/1
2021-05-28T10:03:02.5945688Z 
2021-05-28T10:03:02.5958749Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:02.5959948Z   lib/phoenix/live_dashboard/pages/os_mon_page.ex:235: Phoenix.LiveDashboard.OSMonPage.render/1
2021-05-28T10:03:02.5960680Z 
2021-05-28T10:03:02.8797315Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:02.8798978Z   lib/phoenix/live_dashboard/components/card_usage_component.ex:7: Phoenix.LiveDashboard.CardUsageComponent.render/1
2021-05-28T10:03:02.8800063Z 
2021-05-28T10:03:03.3588566Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:03.3590419Z   lib/phoenix/live_dashboard/page_live.ex:211: Phoenix.LiveDashboard.PageLive.render_page/3
2021-05-28T10:03:03.3591252Z 
2021-05-28T10:03:03.3598100Z e[0me[91mwarning: passing the @socket to live_component is no longer necessary, please remove the socket argument
2021-05-28T10:03:03.3599303Z   lib/phoenix/live_dashboard/page_live.ex:236: Phoenix.LiveDashboard.PageLive.live_modal/3
2021-05-28T10:03:03.3599988Z 
2021-05-28T10:03:03.7065068Z e[0mGenerated phoenix_live_dashboard app
2021-05-28T10:03:03.7297779Z ==> phoenix_ecto
2021-05-28T10:03:03.7302642Z Compiling 7 files (.ex)
2021-05-28T10:03:04.1887909Z Generated phoenix_ecto app
2021-05-28T10:03:05.2423055Z  ---> c8a03fc80376
2021-05-28T10:03:05.2424085Z Step 10/30 : COPY assets/package.json assets/package-lock.json ./assets/
2021-05-28T10:03:06.0247988Z  ---> e2daab4f304c
2021-05-28T10:03:06.0249106Z Step 11/30 : RUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=error
2021-05-28T10:03:06.0453987Z  ---> Running in 4a60b6543393
2021-05-28T10:03:14.2182609Z 
2021-05-28T10:03:14.2184182Z > fsevents@1.2.13 install /app/assets/node_modules/watchpack-chokidar2/node_modules/fsevents
2021-05-28T10:03:14.2184905Z > node install.js
2021-05-28T10:03:14.2185160Z 
2021-05-28T10:03:14.2786059Z 
2021-05-28T10:03:14.2792494Z Skipping 'fsevents' build as platform linux is not supported
2021-05-28T10:03:14.7176951Z 
2021-05-28T10:03:14.7178274Z > node-sass@4.14.1 install /app/assets/node_modules/node-sass
2021-05-28T10:03:14.7178830Z > node scripts/install.js
2021-05-28T10:03:14.7179116Z 
2021-05-28T10:03:15.0057435Z Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/linux_musl-x64-83_binding.node
2021-05-28T10:03:15.1280343Z Download complete
2021-05-28T10:03:15.1329236Z Binary saved to /app/assets/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node
2021-05-28T10:03:15.1492509Z Caching binary to /root/.npm/_cacache/node-sass/4.14.1/linux_musl-x64-83_binding.node
2021-05-28T10:03:15.1704079Z 
2021-05-28T10:03:15.1705275Z > node-sass@4.14.1 postinstall /app/assets/node_modules/node-sass
2021-05-28T10:03:15.1705848Z > node scripts/build.js
2021-05-28T10:03:15.1706329Z 
2021-05-28T10:03:15.2978556Z Binary found at /app/assets/node_modules/node-sass/vendor/linux_musl-x64-83/binding.node
2021-05-28T10:03:15.2984850Z Testing binary
2021-05-28T10:03:15.3680654Z Binary is fine
2021-05-28T10:03:15.5004759Z added 1110 packages in 8.691s
2021-05-28T10:03:22.1095863Z  ---> d93a6fbcd8e7
2021-05-28T10:03:22.1096843Z Step 12/30 : COPY priv priv
2021-05-28T10:03:23.3814869Z  ---> fe29ea4b74a1
2021-05-28T10:03:23.3816317Z Step 13/30 : COPY assets assets
2021-05-28T10:03:24.6117202Z  ---> c76fd176775e
2021-05-28T10:03:24.6118202Z Step 14/30 : COPY lib lib
2021-05-28T10:03:25.8894497Z  ---> 304d74ec253d
2021-05-28T10:03:25.8897284Z Step 15/30 : RUN npm run --prefix ./assets deploy
2021-05-28T10:03:25.9266727Z  ---> Running in 7d03364292dd
2021-05-28T10:03:26.5029396Z 
2021-05-28T10:03:26.5030170Z > @ deploy /app/assets
2021-05-28T10:03:26.5031365Z > NODE_ENV=production webpack --mode production
2021-05-28T10:03:26.5031812Z 
2021-05-28T10:03:30.3307941Z e[91m
2021-05-28T10:03:30.3316631Z e[0me[91mwarn - You have enabled the JIT engine which is currently in preview.
2021-05-28T10:03:30.3317898Z warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.
2021-05-28T10:03:34.5019922Z e[0mHash: 9573c4cb7e6f12807d4f
2021-05-28T10:03:34.5020349Z Version: webpack 4.46.0
2021-05-28T10:03:34.5020678Z Time: 6784ms
2021-05-28T10:03:34.5020991Z Built at: 05/28/2021 10:03:34 AM
2021-05-28T10:03:34.5021363Z                 Asset       Size  Chunks             Chunk Names
2021-05-28T10:03:34.5021812Z        ../css/app.css   11.4 KiB       0  [emitted]  app
2021-05-28T10:03:34.5022239Z        ../favicon.ico   1.23 KiB          [emitted]  
2021-05-28T10:03:34.5022714Z ../images/phoenix.png   13.6 KiB          [emitted]  
2021-05-28T10:03:34.5023169Z         ../robots.txt  202 bytes          [emitted]  
2021-05-28T10:03:34.5023579Z                app.js    102 KiB       0  [emitted]  app
2021-05-28T10:03:34.5024051Z    app.js.LICENSE.txt  139 bytes          [emitted]  
2021-05-28T10:03:34.5024529Z Entrypoint app = ../css/app.css app.js
2021-05-28T10:03:34.5025032Z [1] ../deps/phoenix/priv/static/phoenix.js 38.9 KiB {0} [built]
2021-05-28T10:03:34.5025618Z [2] ../deps/phoenix_live_view/priv/static/phoenix_live_view.js 113 KiB {0} [built]
2021-05-28T10:03:34.5026117Z [3] multi ./js/app.js 28 bytes {0} [built]
2021-05-28T10:03:34.5026500Z [4] ./js/app.js 1.54 KiB {0} [built]
2021-05-28T10:03:34.5026879Z [5] ./css/app.scss 39 bytes {0} [built]
2021-05-28T10:03:34.5027346Z [6] ../deps/phoenix_html/priv/static/phoenix_html.js 2.21 KiB {0} [built]
2021-05-28T10:03:34.5027799Z     + 2 hidden modules
2021-05-28T10:03:34.5028810Z Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js!css/app.scss:
2021-05-28T10:03:34.5030024Z     Entrypoint mini-css-extract-plugin = *
2021-05-28T10:03:34.5031210Z     [0] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./css/app.scss 21 KiB {0} [built]
2021-05-28T10:03:34.5031996Z         + 1 hidden module
2021-05-28T10:03:36.1881417Z  ---> a5cce01f4c1c
2021-05-28T10:03:36.1881890Z Step 16/30 : RUN mix phx.digest
2021-05-28T10:03:36.2198395Z  ---> Running in 3ce2651093e3
2021-05-28T10:03:36.9758698Z Check your digested files at "priv/static"
2021-05-28T10:03:38.2403102Z  ---> a192c0249390
2021-05-28T10:03:38.2404012Z Step 17/30 : COPY lib lib
2021-05-28T10:03:39.4428999Z  ---> dcb22964c6a7
2021-05-28T10:03:39.4429442Z Step 18/30 : COPY rel rel
2021-05-28T10:03:40.6914997Z e[31mErrore[0m error building: error rendering build status stream: failed to export image: failed to create image: failed to get layer sha256:c8439375341457aa225bab9ce5a0085d26be9e929452b12ba240511b3d92be78: layer does not exist
2021-05-28T10:03:40.8407003Z Post job cleanup.
2021-05-28T10:03:40.9504456Z [command]/usr/bin/git version
2021-05-28T10:03:40.9556959Z git version 2.31.1
2021-05-28T10:03:40.9594299Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-05-28T10:03:40.9638492Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-05-28T10:03:40.9877530Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-05-28T10:03:40.9910821Z http.https://github.com/.extraheader
2021-05-28T10:03:40.9920874Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2021-05-28T10:03:40.9960577Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-05-28T10:03:41.0259705Z Cleaning up orphan processes

Here is my Github Workflow

name: Deploy App to Fly
on:
  push:
    branches:
      - develop
env:
  FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
  deploy:
    name: Deploy Development App
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: superfly/flyctl-actions@1.1
        with:
          args: "deploy -a indiepaper-dev "

Here is my DockerFile

###
### Fist Stage - Building the Release
###
### FROM hexpm/elixir:1.12.0-erlang-24.0.1-alpine-3.13.3 AS build
FROM hexpm/elixir:1.11.2-erlang-23.3.2-alpine-3.13.3 AS build


# install build dependencies
RUN apk add --no-cache build-base npm

# prepare build dir
WORKDIR /app

# install hex + rebar
RUN mix local.hex --force && \
    mix local.rebar --force

# set build ENV as prod
ENV MIX_ENV=prod
ENV SECRET_KEY_BASE=nokey

# Copy over the mix.exs and mix.lock files to load the dependencies. If those
# files don't change, then we don't keep re-fetching and rebuilding the deps.
COPY mix.exs mix.lock ./
COPY config config

RUN mix deps.get --only prod && \
    mix deps.compile

# install npm dependencies
COPY assets/package.json assets/package-lock.json ./assets/
RUN npm --prefix ./assets ci --progress=false --no-audit --loglevel=error

COPY priv priv
COPY assets assets

# NOTE: If using TailwindCSS, it uses a special "purge" step and that requires
# the code in `lib` to see what is being used. Uncomment that here before
# running the npm deploy script if that's the case.
COPY lib lib

# build assets
RUN npm run --prefix ./assets deploy
RUN mix phx.digest

# copy source here if not using TailwindCSS
COPY lib lib

# compile and build release
COPY rel rel
RUN mix do compile, release

###
### Second Stage - Setup the Runtime Environment
###

# prepare release docker image
FROM alpine:3.13.3 AS app
RUN apk add --no-cache openssl ncurses-libs

WORKDIR /app

RUN chown nobody:nobody /app

USER nobody:nobody

COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/indie_paper ./

ENV HOME=/app
ENV MIX_ENV=prod
ENV SECRET_KEY_BASE=nokey
ENV PORT=4000

CMD ["bin/indie_paper", "start"]

I would add --remote-only to the deploy arguments. This ensures your image gets built on a remote builder and takes advantage of cache there. Building on Github will not reuse cached layers without a bunch of setup.

4 Likes

Thanks for both the solutions, the build worked like a charm.