build: Update toolchain to nightly-2023-11-11 #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust-Hypervisor-Firmware's Docker image update | ||
on: | ||
push: | ||
branches: main | ||
paths: | ||
- resources/Dockerfile | ||
- rust-toolchain.toml | ||
pull_request: | ||
paths: | ||
- resources/Dockerfile | ||
- rust-toolchain.toml | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
permission: | ||
Check failure on line 16 in .github/workflows/docker-image.yaml GitHub Actions / Rust-Hypervisor-Firmware's Docker image updateInvalid workflow file
|
||
packages: write | ||
jobs: | ||
main: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Code checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Get active Rust toolchain | ||
id: get-toolchain | ||
run: echo "toolchain=`rustup show active-toolchain | cut -d ' ' -f1`" >> $GITHUB_ENV | ||
- name: Login to ghcr | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
flavor: | | ||
latest=true | ||
- name: Build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
file: ./resources/Dockerfile | ||
build-args: | | ||
RUST_TOOLCHAIN=${{ env.toolchain }} | ||
platforms: | | ||
linux/arm64 | ||
linux/amd64 | ||
push: ${{ github.event_name == 'push' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |