Skip to content

Commit 44a5066

Browse files
authored
Merge pull request #88 from Noratrieb/release-every-nightly
Release nightly even if the commit is the same
2 parents 110ad45 + a36f8d8 commit 44a5066

File tree

6 files changed

+20
-17
lines changed

6 files changed

+20
-17
lines changed

Cargo.lock

Lines changed: 3 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
services:
33
minio:
4-
image: quay.io/minio/minio:RELEASE.2023-04-13T03-08-07Z
4+
image: quay.io/minio/minio:RELEASE.2025-05-24T17-08-30Z
55
command: minio server /data
66
ports:
77
- 9000:9000

local/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@
55
# regularly takes 2 minutes to download 20MB of binary). The only other way
66
# they distribute the CLI is from Docker, so we load their image as a stage and
77
# then copy the binary from it later in the build.
8-
FROM quay.io/minio/mc:RELEASE.2023-04-12T02-21-51Z AS mc
8+
FROM quay.io/minio/mc:RELEASE.2025-04-16T18-13-26Z AS mc
99

10-
FROM ubuntu:22.04
10+
FROM ubuntu:24.04
1111

1212
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
13-
awscli \
1413
build-essential \
1514
curl \
1615
git \
1716
gnupg \
1817
jq \
1918
python3 \
19+
unzip \
2020
socat
2121

22+
# Install awscli
23+
RUN curl --fail "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip" && \
24+
unzip awscliv2.zip && \
25+
./aws/install
26+
2227
# Install rustup while removing the pre-installed stable toolchain.
2328
RUN curl https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init >/tmp/rustup-init && \
2429
chmod +x /tmp/rustup-init && \

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Start a dummy local release process, without making changes to any production
33
# system. This requires docker and docker-compose to be installed.
44

src/main.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ impl Context {
137137

138138
// If the previously released version is the same rev, then there's
139139
// nothing for us to do, nothing has changed.
140-
if !self.config.bypass_startup_checks && previous_version.contains(&rev[..7]) {
140+
// For nightly, we want to release every night, even if it's the same as the previous one,
141+
// to make it easier for people and tools to use.
142+
if !self.config.bypass_startup_checks
143+
&& self.config.channel != Channel::Nightly
144+
&& previous_version.contains(&rev[..7])
145+
{
141146
println!("found rev in previous version, skipping");
142147
println!("set PROMOTE_RELEASE_BYPASS_STARTUP_CHECKS=1 to bypass the check");
143148
return Ok(());

src/smoke_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl SmokeTester {
115115
}
116116

117117
fn server_handler(req: Request<Body>, paths: Arc<Vec<PathBuf>>) -> Result<Response<Body>, Error> {
118-
let file_name = match req.uri().path().split('/').last() {
118+
let file_name = match req.uri().path().split('/').next_back() {
119119
Some(file_name) => file_name,
120120
None => return not_found(),
121121
};

0 commit comments

Comments
 (0)