-
Notifications
You must be signed in to change notification settings - Fork 89
46 lines (42 loc) · 1.02 KB
/
ci.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
name: CI
permissions:
contents: read
on:
pull_request:
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
env:
#RUST_VERSION
RUST_VERSION: 1.82.0
#RUST_VERSION
strategy:
matrix:
include:
#VERSIONS
- name: bullseye
variant: bullseye
- name: slim-bullseye
variant: bullseye/slim
- name: bookworm
variant: bookworm
- name: slim-bookworm
variant: bookworm/slim
- name: alpine3.19
variant: alpine3.19
- name: alpine3.20
variant: alpine3.20
#VERSIONS
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- run: git clone https://github.com/docker-library/official-images.git ~/official-images
- run: docker build -t rust:$RUST_VERSION-${{ matrix.name }} stable/${{ matrix.variant }}
- run: ~/official-images/test/run.sh rust:$RUST_VERSION-${{ matrix.name }}
- run: docker images