Use pre-prepared Docker image in CI to speed things up

This commit is contained in:
Alex Auvolat
2021-04-08 20:06:48 +02:00
parent 7f1a50dbd9
commit 640e3921d8
3 changed files with 22 additions and 28 deletions
+6
View File
@@ -0,0 +1,6 @@
FROM rust:buster
RUN apt-get update && \
apt-get install --yes libsodium-dev awscli python-pip && \
rm -rf /var/lib/apt/lists/*
RUN rustup component add rustfmt
RUN pip install s3cmd
+8
View File
@@ -0,0 +1,8 @@
DOCKER=lxpz/garage_builder_amd64
docker:
docker build -t $(DOCKER):$(TAG) .
docker push $(DOCKER):$(TAG)
docker tag $(DOCKER):$(TAG) $(DOCKER):latest
docker push $(DOCKER):latest