-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.19 KB
/
manual.yaml
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
name: Manual
on:
workflow_dispatch:
inputs:
comment:
description: "Comment"
required: false
default: ""
env:
IMAGE_NAME: nugulinux/buildenv
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
target:
[
xenial_x64,
xenial_arm64,
xenial_armhf,
bionic_x64,
bionic_arm64,
bionic_armhf,
focal_x64,
focal_arm64,
focal_armhf,
jammy_x64,
jammy_arm64,
jammy_armhf,
]
steps:
- name: Comment
run: echo "Comment - ${{ github.event.inputs.comment }}"
- name: Check out the repo
uses: actions/checkout@v4
- name: Enable experimental feature
run: |
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
- name: Build image
run: ./build.sh ${{ matrix.target }}
- name: Docker login
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Publish
run: docker push $IMAGE_NAME:${{ matrix.target }}