Rebase CI environment on alpine linux
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
f7fa25c2e5
commit
a7a5eaa100
1 changed files with 7 additions and 7 deletions
14
.drone.yml
14
.drone.yml
|
@ -3,28 +3,28 @@ kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: fetch-dependencies
|
|
||||||
image: edurable/apmbc-reporting-build-environment:latest
|
|
||||||
commands:
|
|
||||||
- mix deps.get
|
|
||||||
- name: build-release
|
- name: build-release
|
||||||
image: edurable/apmbc-reporting-build-environment:latest
|
image: alpine:3.15
|
||||||
environment:
|
environment:
|
||||||
MIX_ENV: prod
|
MIX_ENV: prod
|
||||||
commands:
|
commands:
|
||||||
|
- apk add elixir make gcc libc-dev
|
||||||
|
- mix local.hex --force
|
||||||
|
- mix local.rebar --force
|
||||||
|
- mix deps.get
|
||||||
- mix compile
|
- mix compile
|
||||||
- mix phx.digest
|
- mix phx.digest
|
||||||
- mix release
|
- mix release
|
||||||
- cd _build/prod/rel
|
- cd _build/prod/rel
|
||||||
- tar czf "meta-$(git describe --exact-match --tags $(git log -n1 --pretty='%h') || git rev-parse HEAD).tar.gz" meta/
|
- tar czf "meta-$(git describe --exact-match --tags $(git log -n1 --pretty='%h') || git rev-parse HEAD).tar.gz" meta/
|
||||||
- name: publish-release-archive
|
- name: publish-release-archive
|
||||||
image: edurable/apmbc-reporting-build-environment:latest
|
image: alpine:3.15
|
||||||
environment:
|
environment:
|
||||||
LFTP_PASSWORD:
|
LFTP_PASSWORD:
|
||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
commands:
|
commands:
|
||||||
|
- apk add lftp openssh-client-common
|
||||||
- cd _build/prod/rel
|
- cd _build/prod/rel
|
||||||
- apt-get install -y lftp
|
|
||||||
- mkdir ~/.ssh
|
- mkdir ~/.ssh
|
||||||
- ssh-keyscan static.recycled.cloud > ~/.ssh/known_hosts
|
- 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"
|
- 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"
|
||||||
|
|
Loading…
Reference in a new issue