Skip to content

Commit

Permalink
[PLATFORM-1369]: Migrate amqpx to GHA (#173)
Browse files Browse the repository at this point in the history
* Trying to let CI work

* Remove drone.yml file

* Port is already allocated

* External port change

* Use another mix_envg

* Wrong mapping

* Fix hostnames

* Format gha config file

* Credo and dialyxir available in gha

* Parametric url for curl in test setup

* Format

* Expose manager port in ci; log which rabbit instance is not available

* Fix user-pass in CI

* Fix warning

* Debugging test not working

* Temporarily disable credo

* Revert
  • Loading branch information
cottinisimone authored Jan 3, 2024
1 parent 3256e7b commit 105ba2b
Show file tree
Hide file tree
Showing 10 changed files with 485 additions and 295 deletions.
285 changes: 0 additions & 285 deletions .drone.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CD

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '24'
elixir-version: '1.13'
- name: Checkout
uses: actions/checkout@v3
- name: setup hex
run: |
mix local.hex --force
mix local.rebar --force
- name: Get deps
run: mix deps.get
- name: Get version
run: |
VERSION=$(grep -m1 version mix.exs | cut -d'"' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Check version
if: ${{ github.event.release.tag_name != env.VERSION }}
run: |
echo "Github ref tag [${{ github.event.release.tag_name }}] is different from mix.exs version [${{ env.VERSION }}]"
exit 1
- name: Login to hex.pm
run: |
mix hex.config api_key "$HEX_AUTH_KEY"
env:
HEX_AUTH_KEY: ${{ secrets.HEX_AUTH_KEY }}
- name: Publish
run: mix hex.publish --yes
Loading

0 comments on commit 105ba2b

Please sign in to comment.