Update rust:1.83.0 Docker digest to a45bf1f (#498) #2215
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: Build & Test | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "v*" | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rust: | |
name: Cargo | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Rust | |
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- name: Build | |
run: cargo build --verbose | |
env: | |
CARGO_INCREMENTAL: "0" | |
- name: Test | |
run: cargo test --verbose | |
docker: | |
name: Docker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Build docker image | |
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0 | |
with: | |
context: . | |
platforms: linux/amd64 | |
push: false | |
tags: harryzcy/artifact-store:ci | |
- name: Test docker image | |
run: | | |
docker run -d --rm --name artifact-store -p 3001:3001 harryzcy/artifact-store:ci | |
sleep 5 | |
curl -sSf http://localhost:3001/ping | |
echo | |
docker stop artifact-store |