File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,11 @@ jobs:
154154 labels : |
155155 ${{ fromJSON(steps.prepare-meta.outputs.labels) }}
156156
157+ # always use the main branch, since we need it for the base image
157158 - name : Build Docker image
158159 id : build-docker-image
159160 timeout-minutes : 60
160- run : cargo xtask build-docker-image -v "${IMAGE}.${SUB}"
161+ run : cargo xtask build-docker-image -v --tag main "${IMAGE}.${SUB}"
161162 env :
162163 IMAGE : ${{ matrix.image }}
163164 SUB : ${{ matrix.sub }}
@@ -167,16 +168,15 @@ jobs:
167168
168169 - name : Save Docker Image
169170 id : save-docker-image
170- run : docker save "${IMAGE}:${TAG} " -o "${IMAGE}-${TAG} -${SUB}.tar"
171+ run : docker save "${IMAGE}:main " -o "${IMAGE}-main -${SUB}.tar"
171172 env :
172173 IMAGE : ${{ matrix.image }}
173174 SUB : ${{ matrix.sub }}
174- TAG : ${{ env.GITHUB_REF_NAME }}
175175
176176 - uses : actions/upload-artifact@v2
177177 with :
178178 name : ${{ matrix.image }}-${{ matrix.sub }}-image-tarball
179- path : ${{ matrix.image }}-${{ matrix.sub }}-${{ env.GITHUB_REF_NAME }}.tar
179+ path : ${{ matrix.image }}-main- ${{ matrix.sub }}.tar
180180
181181 - name : Login to GitHub Container Registry
182182 uses : docker/login-action@v1
Original file line number Diff line number Diff line change @@ -6,16 +6,7 @@ COPY lib.sh /
66COPY linux-image.sh /
77RUN /linux-image.sh aarch64
88
9- FROM centos:7
10-
11- COPY common.sh lib.sh /
12- RUN /common.sh
13-
14- COPY cmake.sh /
15- RUN /cmake.sh
16-
17- COPY xargo.sh /
18- RUN /xargo.sh
9+ FROM ghcr.io/cross-rs/base:centos-main
1910
2011COPY qemu.sh /
2112RUN /qemu.sh aarch64 softmmu
You can’t perform that action at this time.
0 commit comments