generated from actions/hello-world-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
61 lines (57 loc) · 1.7 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: "Opsmaru Pakman"
author: "Zack Siri"
branding:
icon: "package"
color: "purple"
description: "Builds project into alpine package to be deployed using opsmaru.com"
inputs:
alpine:
description: |
Alpine linux version to use (edge | 3.20 | v3.19 | v3.18 | v3.17 | v3.16)
required: true
runs:
using: composite
steps:
- name: Create Mix Directory
run: |
mkdir -p ~/.mix
mkdir -p ~/packages
mkdir -p ~/artifacts
shell: bash
- name: Setup Alpine
uses: jirutka/setup-alpine@v1
with:
apk-tools-url: https://alpinelinux.opsmaru.com/api/v4/projects/5/packages/generic/v2.14.4/x86_64/apk.static#!sha256!42cea2a41dc09b263f04bb0ade8a2ba251256b91f89095ecc8a19903b2b3e39e
branch: ${{ inputs.alpine }}
packages: |
zip
tar
sudo
cmake
elixir
coreutils
alpine-sdk
volumes: |
/home/runner/.mix:/home/runner/.mix
/home/runner/packages:/home/runner/packages
/home/runner/artifacts:/home/runner/artifacts
- name: Prepare Runner User
run: |
sudo addgroup runner abuild
echo "/home/runner/.mix/escripts" >> $GITHUB_PATH
shell: alpine.sh {0}
- name: Cache Pakman
id: cache-pakman
uses: actions/cache@v4
with:
path: ~/.mix
key: ${{ runner.arch }}-alpine-${{ inputs.alpine }}-pakman-develop
- name: Install Pakman
if: steps.cache-pakman.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix escript.install github upmaru/pakman branch develop --force
shell: alpine.sh {0}
env:
MIX_ENV: prod