Skip to content

Fix docker files

Fix docker files #24

name: Update Cirrus-CI Rust Docker Images
on:
push:
branches: [ main ]
pull_request:
branches: [ main, release* ]
schedule:
- cron: "0 6 * * 0" # Run every Sunday at 6 am
workflow_dispatch:
jobs:
check-latest-rust-version-and-create-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: llvm-tools-preview
- name: Get version of latest Rust release
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --no-modify-path
rustup install stable
export LATEST_RUST_RELEASE=$(rustc --version | cut -d' ' -f2)
- name: Update docker files
run: |
export EXPECTED_RUST_VERSION_ENV="EXPECTED_RUST_VERSION=\"${LATEST_RUST_RELEASE}\""
export PATH_TO_DOCKER_FILES="internal/docker"
find "${PATH_TO_DOCKER_FILES}" -type f -exec sed -i "s/EXPECTED_RUST_VERSION=\".*\"/${EXPECTED_RUST_VERSION_ENV}/" {} \;
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: [#8] Update Cirrus-CI Rust Docker images
title: elk-#8 Update Cirrus-CI Rust Docker images
body: |

Check failure on line 41 in .github/workflows/update-rust-docker-images.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-rust-docker-images.yml

Invalid workflow file

You have an error in your yaml syntax on line 41
Update Cirrus-CI Rust Docker images to latest Rust release
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: elk-8-update-cirrus-ci-rust-docker-images