From de350a10b053ee3732bc17cf6f56c7fb9a841d0f Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 12 Mar 2024 22:50:21 +0000 Subject: [PATCH] Copy tags newer crane --- .github/workflows/ci.yml | 51 +++++++--------------------------------- 1 file changed, 9 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a205e4..7f28691 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,8 @@ name: CI on: push: # Avoid duplicate builds on PRs. - branches: - - main + # branches: + # - main pull_request: permissions: @@ -14,47 +14,14 @@ env: CARGO_TERM_COLOR: always jobs: - lint: + copy-images: runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 - - name: Update Rust toolchain - run: rustup update - - name: Rust Cache - uses: Swatinem/rust-cache@v2.7.3 - - name: Clippy - run: cargo clippy --all-targets --locked -- --deny warnings - - name: rustfmt - run: cargo fmt -- --check - - unit-test: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Update Rust toolchain - run: rustup update - - name: Rust Cache - uses: Swatinem/rust-cache@v2.7.3 - - name: Run unit tests - run: cargo test --locked - - integration-test: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install musl-tools - run: sudo apt-get install musl-tools --no-install-recommends - - name: Update Rust toolchain - run: rustup update - - name: Install Rust linux-musl target - run: rustup target add x86_64-unknown-linux-musl - - name: Rust Cache - uses: Swatinem/rust-cache@v2.7.3 - - name: Install Pack CLI - uses: buildpacks/github-actions/setup-pack@v5.5.3 - - name: Run integration tests - # Runs only tests annotated with the `ignore` attribute (which in this repo, are the integration tests). - run: cargo test --locked -- --ignored + - name: Install crane + uses: buildpacks/github-actions/setup-tools@v5.5.3 + with: + crane-version: "0.19.0" + - name: Copy images + run: crane copy docker.io/heroku/procfile-cnb docker.io/heroku/buildpack-procfile --all-tags