chore: tweak .drone.yml
.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
052dc87ef2
commit
e9294ed7fa
28
.drone.yml
28
.drone.yml
|
@ -64,12 +64,11 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- asdf_install
|
- asdf_install
|
||||||
- rm -rf .asdf/downloads
|
- rm -rf .asdf/downloads
|
||||||
- . $ASDF_DIR/asdf.sh
|
- asdf mix local.hex --if-missing --force
|
||||||
- mix local.hex --if-missing --force
|
- asdf mix local.rebar --if-missing --force
|
||||||
- mix local.rebar --if-missing --force
|
- asdf mix deps.get
|
||||||
- mix deps.get
|
- asdf mix deps.compile
|
||||||
- mix deps.compile
|
- asdf mix dialyzer --plt
|
||||||
- mix dialyzer --plt
|
|
||||||
|
|
||||||
- name: store ASDF cache
|
- name: store ASDF cache
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
|
@ -281,10 +280,9 @@ steps:
|
||||||
from_secret: DRONE_TOKEN
|
from_secret: DRONE_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
- . $ASDF_DIR/asdf.sh
|
- asdf mix git_ops.project_info --format=shell > before.env
|
||||||
- mix git_ops.project_info --format=shell > before.env
|
- asdf mix git_ops.release --yes --no-major || true
|
||||||
- mix git_ops.release --yes --no-major || true
|
- asdf mix git_ops.project_info --format=shell > after.env
|
||||||
- mix git_ops.project_info --format=shell > after.env
|
|
||||||
- . ./before.env
|
- . ./before.env
|
||||||
- export OLD_APP_VERSION=$${APP_VERSION}
|
- export OLD_APP_VERSION=$${APP_VERSION}
|
||||||
- . ./after.env
|
- . ./after.env
|
||||||
|
@ -320,13 +318,12 @@ steps:
|
||||||
ASDF_DATA_DIR: /drone/src/.asdf
|
ASDF_DATA_DIR: /drone/src/.asdf
|
||||||
ASDF_DIR: /root/.asdf
|
ASDF_DIR: /root/.asdf
|
||||||
commands:
|
commands:
|
||||||
- . $ASDF_DIR/asdf.sh
|
- asdf mix git_ops.project_info --format=shell > app.env
|
||||||
- mix git_ops.project_info --format=shell > app.env
|
|
||||||
- . ./app.env
|
- . ./app.env
|
||||||
- mkdir artifacts
|
- mkdir artifacts
|
||||||
- mix hex.build -o "artifacts/$${APP_NAME}-$${APP_VERSION}-pkg.tar"
|
- asdf mix hex.build -o "artifacts/$${APP_NAME}-$${APP_VERSION}-pkg.tar"
|
||||||
- gzip "artifacts/$${APP_NAME}-$${APP_VERSION}-pkg.tar"
|
- gzip "artifacts/$${APP_NAME}-$${APP_VERSION}-pkg.tar"
|
||||||
- mix docs
|
- asdf mix docs
|
||||||
- tar zcvf "artifacts/$${APP_NAME}-$${APP_VERSION}-docs.tar.gz" doc/
|
- tar zcvf "artifacts/$${APP_NAME}-$${APP_VERSION}-docs.tar.gz" doc/
|
||||||
- git tag -l --format='%(contents:subject)' v$${APP_VERSION} > tag_subject
|
- git tag -l --format='%(contents:subject)' v$${APP_VERSION} > tag_subject
|
||||||
- git tag -l --format='%(contents:body)' v$${APP_VERSION} > tag_body
|
- git tag -l --format='%(contents:body)' v$${APP_VERSION} > tag_body
|
||||||
|
@ -394,5 +391,4 @@ steps:
|
||||||
HEX_API_KEY:
|
HEX_API_KEY:
|
||||||
from_secret: HEX_API_KEY
|
from_secret: HEX_API_KEY
|
||||||
commands:
|
commands:
|
||||||
- . $ASDF_DIR/asdf.sh
|
- asdf mix hex.publish --yes
|
||||||
- mix hex.publish --yes
|
|
||||||
|
|
Loading…
Reference in a new issue