Skip to content

Publish ghcr.io/rust-lang/rust image using default workflow token #18

Publish ghcr.io/rust-lang/rust image using default workflow token

Publish ghcr.io/rust-lang/rust image using default workflow token #18

Workflow file for this run

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.76.0
#RUST_VERSION
strategy:
matrix:
include:
#VERSIONS
- name: buster
variant: buster
- name: slim-buster
variant: buster/slim
- name: bullseye
variant: bullseye
- name: slim-bullseye
variant: bullseye/slim
- name: bookworm
variant: bookworm
- name: slim-bookworm
variant: bookworm/slim
- name: alpine3.18
variant: alpine3.18
- name: alpine3.19
variant: alpine3.19
#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 }} $RUST_VERSION/${{ matrix.variant }}
- run: ~/official-images/test/run.sh rust:$RUST_VERSION-${{ matrix.name }}
- run: docker images