cinder-space/.drone.yml
james 5dc0fa1866
Some checks failed
continuous-integration/drone/push Build is failing
chore(deps): update dependency erlang to v26.0.2 (#2)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [erlang](https://github.com/erlang/otp) | patch | `26.0.1` -> `26.0.2` |

---

### Release Notes

<details>
<summary>erlang/otp (erlang)</summary>

### [`v26.0.2`](https://github.com/erlang/otp/releases/tag/OTP-26.0.2): OTP 26.0.2

[Compare Source](https://github.com/erlang/otp/compare/OTP-26.0.1...OTP-26.0.2)

    Patch Package:           OTP 26.0.2
    Git Tag:                 OTP-26.0.2
    Date:                    2023-06-29
    Trouble Report Id:       OTP-18580, OTP-18618, OTP-18624, OTP-18625,
                             OTP-18626, OTP-18630, OTP-18634, OTP-18635,
                             OTP-18636, OTP-18637, OTP-18640, OTP-18643,
                             OTP-18646, OTP-18649, OTP-18650, OTP-18651,
                             OTP-18652, OTP-18653, OTP-18656, OTP-18657,
                             OTP-18659, OTP-18663
    Seq num:                 ERIERL-932, GH-6881, GH-7029, GH-7230,
                             GH-7261, GH-7286, GH-7296, GH-7308, GH-7324,
                             GH-7354, GH-7356, GH-7368, GH-7370, GH-7390,
                             GH-7433
    System:                  OTP
    Release:                 26
    Application:             compiler-8.3.2, erts-14.0.2, kernel-9.0.2,
                             ssh-5.0.1, ssl-11.0.2, stdlib-5.0.2
    Predecessor:             OTP 26.0.1

     Check out the git tag OTP-26.0.2, and build a full OTP system
     including documentation. Apply one or more applications from this
     build as patches to your installation using the 'otp_patch_apply'
     tool. For information on install requirements, see descriptions for
     each application version below.

     ---------------------------------------------------------------------
     --- compiler-8.3.2 --------------------------------------------------
     ---------------------------------------------------------------------

     The compiler-8.3.2 application can be applied independently of other
     applications on a full OTP 26 installation.

     --- Fixed Bugs and Malfunctions ---

      OTP-18625    Application(s): compiler
                   Related Id(s): GH-7354

                   Fixed a type handling bug that would cause an internal
                   consistence failure for correct code.

      OTP-18626    Application(s): compiler
                   Related Id(s): GH-7356

                   Fixed a bug that could cause the stack trace of throw
                   exceptions to be erroneously optimized out.

      OTP-18634    Application(s): compiler
                   Related Id(s): GH-7370

                   Complex guard expression using 'or' were not always
                   fully evaluated, making guards that were supposed to
                   fail succeed.

     Full runtime dependencies of compiler-8.3.2: crypto-5.1, erts-13.0,
     kernel-8.4, stdlib-5.0

     ---------------------------------------------------------------------
     --- erts-14.0.2 -----------------------------------------------------
     ---------------------------------------------------------------------

     The erts-14.0.2 application can be applied independently of other
     applications on a full OTP 26 installation.

     --- Fixed Bugs and Malfunctions ---

      OTP-18630    Application(s): erts
                   Related Id(s): GH-7029, PR-7275

                   Fix using the IME (Input Method Editor) to enter text
                   in cmd.exe and powershell.exe on Windows.

      OTP-18635    Application(s): erts, kernel
                   Related Id(s): #&#8203;7328

                   Multiple socket:accept calls issue. When making
                   multiple accept calls, only the last call is active.

      OTP-18636    Application(s): erts, kernel
                   Related Id(s): GH-7308, PR-7352

                   Fix the shell to ignore terminal delay when the
                   terminal capabilities report that they should be used.

      OTP-18637    Application(s): erts, kernel
                   Related Id(s): GH-7324, PR-7359

                   Fix "oldshell" to echo characters while typing on
                   Windows.

      OTP-18646    Application(s): erts, kernel

                   On Windows, a call to the function socket:close, when
                   there are waiting active calls to read, write or accept
                   functions, could hang.

      OTP-18649    Application(s): erts, kernel
                   Related Id(s): GH-7261, PR-7400

                   Fix issues when reading or configuring standard_io on
                   Windows when erl.exe is started using -noshell flag.

      OTP-18659    Application(s): erts, stdlib
                   Related Id(s): PR-7426

                   The following functions are now much faster when given
                   a long list or binary:

                   -- erlang:list_to_integer/1

                   -- erlang:binary_to_integer/1

                   -- erlang:binary_to_integer/2

                   -- erlang:list_to_integer/2

                   -- string:to_integer/1

      OTP-18663    Application(s): erts
                   Related Id(s): GH-7433, PR-7437

                   On AArch64 (ARM64), equality and non-equality tests
                   with literal bitstrings could succeed when they should
                   fail and vice versa.

     Full runtime dependencies of erts-14.0.2: kernel-9.0, sasl-3.3,
     stdlib-4.1

     ---------------------------------------------------------------------
     --- kernel-9.0.2 ----------------------------------------------------
     ---------------------------------------------------------------------

     The kernel-9.0.2 application can be applied independently of other
     applications on a full OTP 26 installation.

     --- Fixed Bugs and Malfunctions ---

      OTP-18580    Application(s): kernel, stdlib
                   Related Id(s): PR-7242

                   Fix bug where when you entered Alt+Enter in the
                   terminal, the cursor would move to the last line,
                   instead of moving to the next line.

      OTP-18624    Application(s): kernel
                   Related Id(s): GH-7296

                   Fix so that the shell does not crash on startup when
                   termcap is not available.

      OTP-18635    Application(s): erts, kernel
                   Related Id(s): #&#8203;7328

                   Multiple socket:accept calls issue. When making
                   multiple accept calls, only the last call is active.

      OTP-18636    Application(s): erts, kernel
                   Related Id(s): GH-7308, PR-7352

                   Fix the shell to ignore terminal delay when the
                   terminal capabilities report that they should be used.

      OTP-18637    Application(s): erts, kernel
                   Related Id(s): GH-7324, PR-7359

                   Fix "oldshell" to echo characters while typing on
                   Windows.

      OTP-18640    Application(s): kernel, stdlib
                   Related Id(s): GH-6881, GH-7286, GH-7368, PR-7384

                   Fix eof handling when reading from stdin when erlang is
                   started using -noshell.

      OTP-18646    Application(s): erts, kernel

                   On Windows, a call to the function socket:close, when
                   there are waiting active calls to read, write or accept
                   functions, could hang.

      OTP-18649    Application(s): erts, kernel
                   Related Id(s): GH-7261, PR-7400

                   Fix issues when reading or configuring standard_io on
                   Windows when erl.exe is started using -noshell flag.

      OTP-18650    Application(s): kernel

                   gen_udp:connect with inet_backend = socket fails when
                   the Address is a hostname (string or atom).

      OTP-18651    Application(s): kernel
                   Related Id(s): PR-7242

                   Fixed problem which would cause shell to crash if
                   particular escape sequence was written to stdout.

      OTP-18652    Application(s): kernel, stdlib
                   Related Id(s): PR-7242

                   Fixed problem where output would disappear if it was
                   received after a prompt was written in the shell.

      OTP-18656    Application(s): kernel
                   Related Id(s): GH-7390, PR-7404

                   Fix a crash where the location of erts could not be
                   found in rebar3 dev builds.

      OTP-18657    Application(s): kernel
                   Related Id(s): GH-7230, PR-7384

                   Introduce the KERNEL application parameter
                   standard_io_encoding that can be used to set the
                   default encoding for standard_io. This option needs to
                   be set to latin1 if the application wants to treat all
                   input data as bytes rather than utf-8 encoded
                   characters.

     Full runtime dependencies of kernel-9.0.2: crypto-5.0, erts-14.0,
     sasl-3.0, stdlib-5.0

     ---------------------------------------------------------------------
     --- ssh-5.0.1 -------------------------------------------------------
     ---------------------------------------------------------------------

     The ssh-5.0.1 application can be applied independently of other
     applications on a full OTP 26 installation.

     --- Fixed Bugs and Malfunctions ---

      OTP-18653    Application(s): ssh
                   Related Id(s): PR-7242

                   Added multiline editing support to ssh clients
                   connected through OTP ssh daemon.

     Full runtime dependencies of ssh-5.0.1: crypto-5.0, erts-14.0,
     kernel-9.0, public_key-1.6.1, runtime_tools-1.15.1, stdlib-5.0,
     stdlib-5.0

     ---------------------------------------------------------------------
     --- ssl-11.0.2 ------------------------------------------------------
     ---------------------------------------------------------------------

     The ssl-11.0.2 application can be applied independently of other
     applications on a full OTP 26 installation.

     --- Fixed Bugs and Malfunctions ---

      OTP-18643    Application(s): ssl
                   Related Id(s): ERIERL-932

                   Added keylog information to all protocol versions in
                   ssl:connection_information/2.

     --- Improvements and New Features ---

      OTP-18618    Application(s): ssl
                   Related Id(s): ERIERL-932

                   Add RFC-6083 considerations for DTLS to enable gen_sctp
                   based callback for the transport.

     Full runtime dependencies of ssl-11.0.2: crypto-5.0, erts-14.0,
     inets-5.10.7, kernel-9.0, public_key-1.11.3, runtime_tools-1.15.1,
     stdlib-4.1

     ---------------------------------------------------------------------
     --- stdlib-5.0.2 ----------------------------------------------------
     ---------------------------------------------------------------------

     The stdlib-5.0.2 application can be applied independently of other
     applications on a full OTP 26 installation.

     --- Fixed Bugs and Malfunctions ---

      OTP-18580    Application(s): kernel, stdlib
                   Related Id(s): PR-7242

                   Fix bug where when you entered Alt+Enter in the
                   terminal, the cursor would move to the last line,
                   instead of moving to the next line.

      OTP-18640    Application(s): kernel, stdlib
                   Related Id(s): GH-6881, GH-7286, GH-7368, PR-7384

                   Fix eof handling when reading from stdin when erlang is
                   started using -noshell.

      OTP-18652    Application(s): kernel, stdlib
                   Related Id(s): PR-7242

                   Fixed problem where output would disappear if it was
                   received after a prompt was written in the shell.

      OTP-18659    Application(s): erts, stdlib
                   Related Id(s): PR-7426

                   The following functions are now much faster when given
                   a long list or binary:

                   -- erlang:list_to_integer/1

                   -- erlang:binary_to_integer/1

                   -- erlang:binary_to_integer/2

                   -- erlang:list_to_integer/2

                   -- string:to_integer/1

     Full runtime dependencies of stdlib-5.0.2: compiler-5.0, crypto-4.5,
     erts-13.1, kernel-9.0, sasl-3.0

     ---------------------------------------------------------------------
     ---------------------------------------------------------------------
     ---------------------------------------------------------------------

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xNy4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: root <james@harton.nz>
Co-authored-by: James Harton <james@harton.nz>
Reviewed-on: https://code.harton.nz/james/cinder_space/pulls/2
2023-07-21 15:29:21 +12:00

517 lines
12 KiB
YAML

kind: pipeline
type: docker
name: build
steps:
- name: restore ASDF cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'asdf-{{ os }}-{{ arch }}-{{ checksum ".tool-versions" }}'
mount:
- .asdf
- name: restore build cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'elixir-{{ checksum "mix.lock" }}-{{ checksum ".tool-versions" }}'
mount:
- deps
- _build
- .hex
- .mix
- .rebar3
- name: install dependencies
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
ASDF_DIR: /root/.asdf
depends_on:
- restore ASDF cache
- restore build cache
commands:
- asdf_install
- rm -rf .asdf/downloads
- . $ASDF_DIR/asdf.sh
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix deps.compile
- name: store ASDF cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
depends_on:
- install dependencies
settings:
rebuild: true
override: false
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'asdf-{{ os }}-{{ arch }}-{{ checksum ".tool-versions" }}'
mount:
- .asdf
- name: store build cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
depends_on:
- install dependencies
settings:
rebuild: true
override: false
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'elixir-{{ checksum "mix.lock" }}-{{ checksum ".tool-versions" }}'
mount:
- deps
- _build
- .hex
- .mix
- .rebar3
---
kind: pipeline
type: docker
name: test
depends_on:
- build
steps:
- name: restore ASDF cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'asdf-{{ os }}-{{ arch }}-{{ checksum ".tool-versions" }}'
mount:
- .asdf
- name: restore build cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'elixir-{{ checksum "mix.lock" }}-{{ checksum ".tool-versions" }}'
mount:
- deps
- _build
- .hex
- .mix
- .rebar3
- name: mix compile
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- restore ASDF cache
- restore build cache
commands:
- asdf mix compile --warnings-as-errors
- name: mix test
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- asdf mix test
- name: mix credo
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- asdf mix credo --strict
- name: mix sobelow
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- asdf mix sobelow --skip
- name: mix hex.audit
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- asdf mix hex.audit
- name: mix format
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- asdf mix format --check-formatted
- name: mix deps.unlock
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- asdf mix deps.unlock --check-unused
- name: mix doctor
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- asdf mix doctor --full
- name: mix git_ops.check_message
image: code.harton.nz/james/asdf_container:latest
pull: "always"
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
depends_on:
- mix compile
commands:
- git log -1 --format=%s > .last_commit_message
- asdf mix git_ops.check_message .last_commit_message
---
kind: pipeline
type: docker
name: git ops
trigger:
branch:
- main
event:
- push
depends_on:
- test
steps:
- name: restore ASDF cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'asdf-{{ os }}-{{ arch }}-{{ checksum ".tool-versions" }}'
mount:
- .asdf
- name: restore build cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'elixir-{{ checksum "mix.lock" }}-{{ checksum ".tool-versions" }}'
mount:
- deps
- _build
- .hex
- .mix
- .rebar3
- name: mix git_ops.release
image: code.harton.nz/james/asdf_container:latest
pull: "always"
depends_on:
- restore ASDF cache
- restore build cache
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
ASDF_DIR: /root/.asdf
DRONE_TOKEN:
from_secret: DRONE_TOKEN
commands:
- git fetch --tags
- . $ASDF_DIR/asdf.sh
- mix git_ops.project_info --format=shell > before.env
- mix git_ops.release --yes --no-major || true
- mix git_ops.project_info --format=shell > after.env
- . ./before.env
- export OLD_APP_VERSION=$${APP_VERSION}
- . ./after.env
- export NEW_APP_VERSION=$${APP_VERSION}
- if [ "v$${OLD_APP_VERSION}" != "v$${NEW_APP_VERSION}" ]; then
- export GIT_URL=$(echo $DRONE_GIT_HTTP_URL | sed -e "s/:\\/\\//:\\/\\/$DRONE_REPO_OWNER:$DRONE_TOKEN@/")
- git push $${GIT_URL} "HEAD:${DRONE_COMMIT_REF}" "refs/tags/v$${NEW_APP_VERSION}"
- fi
---
kind: pipeline
type: docker
name: release
trigger:
ref:
include:
- refs/tags/v**
depends_on:
- test
steps:
- name: restore ASDF cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'asdf-{{ os }}-{{ arch }}-{{ checksum ".tool-versions" }}'
mount:
- .asdf
- name: restore build cache
image: meltwater/drone-cache
pull: "always"
environment:
AWS_ACCESS_KEY_ID:
from_secret: ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: SECRET_ACCESS_KEY
AWS_PLUGIN_PATH_STYLE: true
settings:
restore: true
endpoint:
from_secret: S3_ENDPOINT
bucket:
from_secret: CACHE_BUCKET
region: us-east-1
path-style: true
cache_key: 'elixir-{{ checksum "mix.lock" }}-{{ checksum ".tool-versions" }}'
mount:
- deps
- _build
- .hex
- .mix
- .rebar3
- name: build artifacts
image: code.harton.nz/james/asdf_container:latest
pull: "always"
depends_on:
- restore ASDF cache
- restore build cache
environment:
MIX_ENV: test
HEX_HOME: /drone/src/.hex
MIX_HOME: /drone/src/.mix
REBAR_BASE_DIR: /drone/src/.rebar3
ASDF_DATA_DIR: /drone/src/.asdf
ASDF_DIR: /root/.asdf
commands:
- . $ASDF_DIR/asdf.sh
- mix git_ops.project_info --format=shell > app.env
- . ./app.env
- mkdir artifacts
- mix esbuild prod
- mix hex.build -o "artifacts/$${APP_NAME}-$${APP_VERSION}-pkg.tar"
- gzip "artifacts/$${APP_NAME}-$${APP_VERSION}-pkg.tar"
- mix docs
- 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:body)' v$${APP_VERSION} > tag_body
- name: gitea release
image: plugins/gitea-release
depends_on:
- build artifacts
settings:
api_key:
from_secret: DRONE_TOKEN
base_url: https://code.harton.nz
files: artifacts/*.tar.gz
checksum: sha256
title: tag_subject
note: tag_body
# - name: hex release
# image: code.harton.nz/james/asdf_container:latest
# pull: "always"
# depends_on:
# - restore ASDF cache
# - restore build cache
# environment:
# MIX_ENV: test
# HEX_HOME: /drone/src/.hex
# MIX_HOME: /drone/src/.mix
# REBAR_BASE_DIR: /drone/src/.rebar3
# ASDF_DATA_DIR: /drone/src/.asdf
# ASDF_DIR: /root/.asdf
# HEX_API_KEY:
# from_secret: HEX_API_KEY
# commands:
# - . $ASDF_DIR/asdf.sh
# - mix hex.publish --yes