Rebase CI environment on alpine linux
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Timothée Floure 2022-05-22 11:53:20 +02:00
parent f7fa25c2e5
commit 8f626c7a8a
Signed by: tfloure
GPG Key ID: 4502C902C00A1E12
1 changed files with 7 additions and 7 deletions

View File

@ -3,28 +3,28 @@ kind: pipeline
name: default
steps:
- name: fetch-dependencies
image: edurable/apmbc-reporting-build-environment:latest
commands:
- mix deps.get
- name: build-release
image: edurable/apmbc-reporting-build-environment:latest
image: alpine:3.15
environment:
MIX_ENV: prod
commands:
- apk add elixir
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
- mix phx.digest
- mix release
- cd _build/prod/rel
- tar czf "meta-$(git describe --exact-match --tags $(git log -n1 --pretty='%h') || git rev-parse HEAD).tar.gz" meta/
- name: publish-release-archive
image: edurable/apmbc-reporting-build-environment:latest
image: alpine:3.15
environment:
LFTP_PASSWORD:
from_secret: ssh_password
commands:
- apk add lftp openssh-client-common
- cd _build/prod/rel
- apt-get install -y lftp
- mkdir ~/.ssh
- ssh-keyscan static.recycled.cloud > ~/.ssh/known_hosts
- lftp "sftp://artifacts:$LFTP_PASSWORD@static.recycled.cloud" -e "cd htdocs; put meta-$(git describe --exact-match --tags $(git log -n1 --pretty='%h') || git rev-parse HEAD).tar.gz; bye"