forked from compliance-framework/nano-web
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (36 loc) · 888 Bytes
/
push-package.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
name: Push Package
permissions:
contents: read
on:
workflow_call:
inputs:
arch:
required: true
type: string
secrets:
OPS_KEY:
required: true
jobs:
push:
name: Push ${{ inputs.arch }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up OPS
run: |
curl https://ops.city/get.sh -sSfL | sh
- name: Set OPS environment variables
run: |
echo "OPS_DIR=$HOME/.ops" >> $GITHUB_ENV
echo "$HOME/.ops/bin" >> $GITHUB_PATH
- name: Login
run: |
ops pkg login ${{ secrets.OPS_KEY }}
- name: Push
run: |
echo "Version: $(./scripts/get-version.sh)"
make pkg-push PKGARCH=${{ inputs.arch }}