diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 215a6c0..55a6b60 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -60,18 +60,31 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 + - name: Build docker image for ${{ env.GITHUB_REF_SLUG }} + if: github.event_name == 'pull_request' + uses: docker/build-push-action@v5 # v5.0.0 + with: + file: ${{ matrix.docker_file }} + platforms: ${{ matrix.arch }} + tags: "${{matrix.tag}}:${{ env.GITHUB_REF_SLUG }}" + load: true + context: . + cache-from: type=gha + cache-to: type=gha,mode=max + # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} if: github.event_name != 'pull_request' - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + uses: docker/login-action@v3 # v3.0.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build docker image for ${{ env.GITHUB_REF_SLUG }} - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 + - name: Push docker image for ${{ env.GITHUB_REF_SLUG }} + if: github.event_name != 'pull_request' + uses: docker/build-push-action@v5 # v5.0.0 with: file: ${{ matrix.docker_file }} platforms: ${{ matrix.arch }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7785f33..c7cd62f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -48,7 +48,7 @@ jobs: if-no-files-found: error deploy-docs: - # if: "startsWith(github.ref, 'refs/tags/')" + if: "startsWith(github.ref, 'refs/tags/')" runs-on: ubuntu-latest needs: build-docs environment: diff --git a/Cargo.toml b/Cargo.toml index 3975798..ca3cd06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ tokio-timerfd = "0.2" uuid = { version = "1", features = ["v7"] } [workspace.package] -version = "0.4.0" +version = "0.5.0" edition = "2021" authors = ["Ivan Kudriavtsev "] description = "ReplayDB Service" diff --git a/replaydb/Cargo.toml b/replaydb/Cargo.toml index c438101..8858d73 100644 --- a/replaydb/Cargo.toml +++ b/replaydb/Cargo.toml @@ -18,7 +18,7 @@ md-5 = "0.10" mini-moka = "0.10" ring = "0.17" rocksdb = { version = "0.22" } -savant_core = { git = "https://github.com/insight-platform/savant-rs", tag = "0.2.27" } +savant_core = { git = "https://github.com/insight-platform/savant-rs", tag = "0.2.30" } twelf = { version = "0.15", features = ["json", "env", "shellexpand"], default-features = false } anyhow = { workspace = true }