Skip to content

Commit f18b96a

Browse files
committed
Fix base image tags and aarch64 centos image.
1 parent 889d7d8 commit f18b96a

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

docker/Dockerfile.aarch64-unknown-linux-gnu.centos

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,7 @@ COPY lib.sh /
66
COPY linux-image.sh /
77
RUN /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

2011
COPY qemu.sh /
2112
RUN /qemu.sh aarch64 softmmu

0 commit comments

Comments
 (0)