aboutsummaryrefslogtreecommitdiff
blob: b13e6a94b45baca1cd2d0a63c4ce8fb936b0dd73 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: build

on:
  schedule:
    - cron: '0 0 * * 1'
  push:
  pull_request:

env:
  ORG: gentoo

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        target:
          - portage
          - stage3-amd64-hardened-nomultilib-openrc
          - stage3-amd64-hardened-openrc
          - stage3-amd64-musl
          - stage3-amd64-musl-hardened
          - stage3-amd64-nomultilib-openrc
          - stage3-amd64-nomultilib-systemd
          - stage3-amd64-openrc
          - stage3-amd64-desktop-openrc
          - stage3-amd64-systemd
          - stage3-armv5tel-openrc
          - stage3-armv5tel-systemd
          - stage3-armv6j-openrc
          - stage3-armv6j-systemd
          - stage3-armv6j_hardfp-openrc
          - stage3-armv6j_hardfp-systemd
          - stage3-armv7a-openrc
          - stage3-armv7a-systemd
          - stage3-armv7a_hardfp_musl-openrc
          - stage3-armv7a_hardfp-openrc
          - stage3-armv7a_hardfp-systemd
          - stage3-arm64-desktop-openrc
          - stage3-arm64-desktop-systemd
          - stage3-arm64-musl
          - stage3-arm64-musl-hardened
          - stage3-arm64-openrc
          - stage3-arm64-systemd
          - stage3-i686-hardened-openrc
          - stage3-i686-musl
          - stage3-i686-openrc
          - stage3-i686-systemd
          - stage3-ppc64le-musl-hardened-openrc
          - stage3-ppc64le-openrc
          - stage3-ppc64le-systemd
          - stage3-rv64_lp64-openrc
          - stage3-rv64_lp64-systemd
          - stage3-rv64_lp64d-openrc
          - stage3-rv64_lp64d-systemd
          - stage3-s390x
    name: ${{ matrix.target }}
    runs-on: ubuntu-latest
    env:
      TARGET: ${{ matrix.target }}
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Set up buildx
        uses: docker/setup-buildx-action@v1
      - name: Build image
        run: ./build.sh
      - name: Inspect image
        run: docker image inspect "${ORG}/${TARGET/-/:}"
      - name: Inspect portage
        if: matrix.target != 'portage'
        run: docker run --rm "${ORG}/${TARGET/-/:}" emerge --info
      - name: Login to DockerHub
        uses: docker/login-action@v1
        if: github.event_name == 'schedule'
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_PASSWORD }}
      - name: Push image
        if: github.event_name == 'schedule'
        env:
          DOCKER_CLI_EXPERIMENTAL: enabled
        run: ./deploy.sh