Skip to content

Commit 1b7bff9

Browse files
committed
env/linux-x86-sid: add cloudbuild configuration
Also, update to the latest tag rather than one from 2019. This is in preparation for changing the host config to use a specific image tag instead of baking the image tag into every docker image. This change will allow us to keep a separate 'cloudbuild' tag from the tag used for the main bulder. This tag can be updated weekly, allowing us to run a second builder in parallel to determine when we want to update to a newer image. For golang/go#56673 Change-Id: I906a95b447949deba0b108b3009c440aa5c31171 Reviewed-on: https://go-review.googlesource.com/c/build/+/449037 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Jenny Rakoczy <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]>
1 parent 51dd3a2 commit 1b7bff9

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

env/linux-x86-sid/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
FROM golang/buildlet-stage0 AS stage0
66

7-
FROM debian:sid-20191014
7+
FROM debian:sid
88
MAINTAINER golang-dev <[email protected]>
99

1010
ENV DEBIAN_FRONTEND noninteractive
@@ -20,6 +20,7 @@ ENV DEBIAN_FRONTEND noninteractive
2020
# qemu-user: QEMU (machine emulator and virtualizer) user-space emulation
2121
RUN apt-get update && apt-get install -y \
2222
--no-install-recommends \
23+
libcrypt1 \
2324
ca-certificates \
2425
curl \
2526
gdb \

env/linux-x86-sid/cloudbuild.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright 2022 The Go Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style
3+
# license that can be found in the LICENSE file.
4+
5+
steps:
6+
- name: 'gcr.io/cloud-builders/docker'
7+
args: [ 'build', '-t', 'golang/buildlet-stage0:latest', '-f', 'cmd/buildlet/stage0/Dockerfile', '.']
8+
- name: 'gcr.io/cloud-builders/docker'
9+
args: [ 'build', '-t', 'gcr.io/symbolic-datum-552/linux-x86-sid:cloudbuild', '-f', 'env/linux-x86-sid/Dockerfile', '.']
10+
images:
11+
- 'gcr.io/symbolic-datum-552/linux-x86-sid:cloudbuild'

0 commit comments

Comments
 (0)