From a7a5eaa1004cd7b8a4866802b90878d9c69da230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Sun, 22 May 2022 11:53:20 +0200 Subject: [PATCH] Rebase CI environment on alpine linux --- .drone.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8d68979..cb13dd7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 make gcc libc-dev + - 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"