-
Notifications
You must be signed in to change notification settings - Fork 30
65 lines (54 loc) · 1.59 KB
/
release.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
62
63
64
name: release
on:
release:
types:
- published
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- image: ubuntu-14.04-base
- image: ubuntu-14.04-oe
- image: ubuntu-14.04-oegarmin
- image: ubuntu-16.04-base
- image: ubuntu-16.04-oe
- image: ubuntu-16.04-oegarmin
- image: ubuntu-18.04-base
- image: ubuntu-18.04-oe
- image: ubuntu-18.04-oetest
- image: ubuntu-18.04-oegarmin
- image: ubuntu-20.04-base
- image: ubuntu-20.04-oe
- image: ubuntu-20.04-oetest
- image: ubuntu-20.04-oegarmin
- image: ubuntu-22.04-oe
- image: ubuntu-22.04-oegarmin
- image: ubuntu-24.04-oe
- image: ubuntu-24.04-oegarmin
runs-on: ubuntu-20.04
env:
USE_HELPER: "1"
DOCKER_BUILDKIT: "1"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Prepare build
run: ./ci/prepare.sh
- name: Install packages
run: |
sudo apt install -y diffstat
- name: Install python packages
run: |
python3 -m pip install --upgrade pip
pip3 install requests
- name: Login to ghcr.io
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Deploy image
run: |
export RELEASE_TAG="${GITHUB_REF##*/}"
./ci/deploy_docker.py "${{ matrix.image }}:$RELEASE_TAG"