1010 IMAGE_NAME : ${{ github.repository }}
1111
1212jobs :
13- build-linux :
14- runs-on : ubuntu-latest
15- permissions :
16- contents : read
17- packages : write
18- outputs :
19- linux-image : ${{ steps.meta.outputs.tags }}
20- steps :
21- - name : Set up Docker Buildx
22- uses : docker/setup-buildx-action@v3
13+ # build-linux:
14+ # runs-on: ubuntu-latest
15+ # permissions:
16+ # contents: read
17+ # packages: write
18+ # outputs:
19+ # linux-image: ${{ steps.meta.outputs.tags }}
20+ # steps:
21+ # - name: Set up Docker Buildx
22+ # uses: docker/setup-buildx-action@v3
2323
24- - name : Login to GitHub Container Registry
25- uses : docker/login-action@v3
26- with :
27- registry : ${{ env.REGISTRY }}
28- username : ${{ github.actor }}
29- password : ${{ secrets.GITHUB_TOKEN }}
24+ # - name: Login to GitHub Container Registry
25+ # uses: docker/login-action@v3
26+ # with:
27+ # registry: ${{ env.REGISTRY }}
28+ # username: ${{ github.actor }}
29+ # password: ${{ secrets.GITHUB_TOKEN }}
3030
31- - name : Docker meta
32- id : meta
33- uses : docker/metadata-action@v5
34- with :
35- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-linux
31+ # - name: Docker meta
32+ # id: meta
33+ # uses: docker/metadata-action@v5
34+ # with:
35+ # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-linux
3636
37- - name : Build
38- uses : docker/build-push-action@v5
39- with :
40- push : ${{ github.event_name != 'pull_request' }}
41- tags : ${{ steps.meta.outputs.tags }}
42- target : linux-build
43- cache-from : type=gha
44- cache-to : type=gha,mode=max
37+ # - name: Build
38+ # uses: docker/build-push-action@v5
39+ # with:
40+ # push: ${{ github.event_name != 'pull_request' }}
41+ # tags: ${{ steps.meta.outputs.tags }}
42+ # target: linux-build
43+ # cache-from: type=gha
44+ # cache-to: type=gha,mode=max
4545
4646 build :
4747 runs-on : ubuntu-latest
48- needs : [build-linux]
48+ # needs: [build-linux]
4949 permissions :
5050 contents : read
5151 packages : write
5252 strategy :
5353 matrix :
5454 os :
5555 - version : ' 2.15.1.1189'
56- target : qemu -toltec
57- - version : ' 3.3.2.1666'
58- target : qemu-toltec
59- - version : ' 3.5.2.1807'
60- target : qemu-toltec
61- - version : ' 3.8.2.1965'
62- target : qemu-toltec
63- - version : ' 3.20.0.92'
64- target : qemu-toltec
56+ target : nix -toltec
57+ # - version: '3.3.2.1666'
58+ # target: qemu-toltec
59+ # - version: '3.5.2.1807'
60+ # target: qemu-toltec
61+ # - version: '3.8.2.1965'
62+ # target: qemu-toltec
63+ # - version: '3.20.0.92'
64+ # target: qemu-toltec
6565
6666 steps :
6767 - name : Set up Docker Buildx
6868 uses : docker/setup-buildx-action@v3
69+ with :
70+ # Have to use docker as we load an external image.
71+ # Prevents using cache
72+ driver : docker
73+
74+ - uses : actions/checkout@v4
75+ - uses : cachix/install-nix-action@v31
76+ - name : Nix Build
77+ run : |
78+ nix build '.#"docker-${{ matrix.os.version }}"'
79+ ./result | docker image load
6980
7081 - name : Login to GitHub Container Registry
7182 uses : docker/login-action@v3
@@ -89,10 +100,10 @@ jobs:
89100 push : ${{ github.event_name != 'pull_request' && github.ref_name == 'main' }}
90101 tags : ${{ steps.meta.outputs.tags }}
91102 target : ${{ matrix.os.target }}
92- cache-from : type=gha
93- cache-to : type=gha,mode=max
103+ # cache-from: type=gha
104+ # cache-to: type=gha,mode=max
105+ # linux_image=${{ needs.build-linux.outputs.linux-image }}
94106 build-args : |
95107 fw_version=${{ matrix.os.version }}
96- linux_image=${{ needs.build-linux.outputs.linux-image }}
97108
98109
0 commit comments