Skip to content

Commit

Permalink
fix multiarch build
Browse files Browse the repository at this point in the history
  • Loading branch information
mruoss committed Feb 26, 2023
1 parent 0f98ca9 commit d6bd5d3
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 22 deletions.
28 changes: 24 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
*
!config
!lib
!mix.*
# The directory Mix will write compiled artifacts to.
_build/

# If you run "mix test --cover", coverage assets end up here.
cover/

# The directory Mix downloads your dependencies sources to.
deps/

# Where 3rd-party dependencies like ExDoc output generated docs.
doc/

# Ignore .fetch files in case you like to edit your project deps locally.
.fetch

# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump

# Also ignore archive artifacts (built via "mix archive.build").
*.ez

.github/
test/

45 changes: 27 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,34 @@ env:
ERLANG_IMAGE: erlang:24.3.4.7

jobs:
create_gh_release:
runs-on: ubuntu-latest
outputs:
release_upload_url: ${{ steps.create_release.outputs.upload_url }}

steps:
- uses: actions/checkout@v3

- name: Prepare release notes
run: |
csplit -s CHANGELOG.md "/^## /" {1}
cat xx01 > release_nots.md
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref_name }}
tag_name: ${{ github.ref }}
body_path: release_nots.md
env:
GITHUB_TOKEN: ${{ github.token }}

build_release:
runs-on: ubuntu-latest
needs: [create_gh_release]
strategy:
matrix:
arch: ["", -slim, -alpine]
Expand Down Expand Up @@ -53,23 +79,6 @@ jobs:
build-args: |
ERLANG_IMAGE=${{ env.ERLANG_IMAGE }}${{ matrix.arch }}
ELIXIR_IMAGE=${{ env.ELIXIR_IMAGE }}${{ matrix.arch }}
- name: Prepare release notes
run: |
csplit -s CHANGELOG.md "/^## /" {1}
cat xx01 > release_nots.md
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref_name }}
tag_name: ${{ github.ref }}
body_path: release_nots.md
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Setup elixir
id: beam
uses: erlef/setup-beam@v1
Expand All @@ -92,7 +101,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ needs.create_gh_release.outputs.release_upload_url }}
asset_path: ./manifest${{ matrix.arch }}.yaml
asset_name: manifest${{ matrix.arch }}.yaml
asset_content_type: application/yaml

0 comments on commit d6bd5d3

Please sign in to comment.