# Copyright (C) 2022 Leandro Lisboa Penz # This file is subject to the terms and conditions defined in # file 'LICENSE', which is part of this source code package. FROM rust:1.62.1-slim-bullseye AS build ENV DEBIAN_FRONTEND=noninteractive WORKDIR /src COPY Cargo.* ./ COPY src ./src RUN set -e -x; \ apt-get update; \ apt-get install -y --no-install-recommends libssl-dev pkg-config; \ cargo build --release FROM debian:bullseye-slim ENV DEBIAN_FRONTEND=noninteractive RUN set -e -x; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates COPY --from=build /src/target/release/github-workflows-update /usr/local/bin/ CMD ["/usr/local/bin/github-workflows-update", "-n", "--output-format", "github-warning", "--error-on-outdated"]