diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..52a64a0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: ci + +on: + push: + branches: + - 'master' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: 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: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: Jet-Engine/devspace-rust-container:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bc331d0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ghcr.io/loft-sh/devspace-containers/rust:1.72-bullseye +LABEL authors="JetEngine Tech" +LABEL org.opencontainers.image.description "JetEngine's DevSpace Container for cutting edge Rust project development. - Latest Stable Compiler" + +RUN apt update && apt upgrade -y &&\ + rustup self update &&\ + rustup update stable &&\ + rustup default stable &&\ + cargo install -f cargo-watch\ + cargo-edit cargo-deny\ + cargo-upgrades cargo-criterion\ + cargo-udeps