Skip to content

Commit

Permalink
Merge branch 'release/v0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Feb 26, 2024
2 parents c288970 + 17d5da9 commit f9515f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ runs:
uses: actions/cache@v4
with:
path: ~/.mix
key: ${{ runner.arch }}-icepak-0.1.1
key: ${{ runner.arch }}-icepak-0.1.2

- name: Install Pakman
if: steps.cache-icepak.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix escript.install hex icepak 0.1.1 --force
mix escript.install hex icepak 0.1.2 --force
shell: alpine.sh {0}
env:
MIX_ENV: prod
13 changes: 5 additions & 8 deletions lib/icepak/push.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ defmodule Icepak.Push do
alias Icepak.Polar

@architecture_mappings %{
"alpine" => %{
"x86_64" => "amd64",
"aarch64" => "arm64",
"arm64" => "arm64",
"amd64" => "amd64"
}
"x86_64" => "amd64",
"aarch64" => "arm64",
"arm64" => "arm64",
"amd64" => "amd64"
}

require Logger
Expand All @@ -23,8 +21,7 @@ defmodule Icepak.Push do
variant = Keyword.fetch!(options, :variant)
serial = Keyword.fetch!(options, :serial)

mapping = Map.fetch!(@architecture_mappings, String.downcase(os))
arch = Map.fetch!(mapping, arch)
arch = Map.fetch!(@architecture_mappings, arch)

storage_path = Path.join(["images", os, release, arch, variant, serial])

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Icepak.MixProject do
def project do
[
app: :icepak,
version: "0.1.1",
version: "0.1.2",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit f9515f3

Please sign in to comment.