Skip to content

Commit 06859b1

Browse files
author
Bryan Johnson
committed
Break-glass publish via machine job with updated QEMU platform
1 parent be69ab6 commit 06859b1

File tree

2 files changed

+53
-37
lines changed

2 files changed

+53
-37
lines changed

.circleci/config.yml

Lines changed: 51 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,41 +23,57 @@ workflows:
2323
when:
2424
not: << pipeline.parameters.cron >>
2525
jobs:
26-
- cimg/build-and-deploy:
27-
name: "Test"
28-
resource-class: xlarge
29-
docker-namespace: ccitest
30-
docker-repository: go
31-
filters:
32-
branches:
33-
ignore:
34-
- main
35-
context:
36-
- slack-notification-access-token
37-
- slack-cimg-notifications
38-
- cimg-docker-image-building
39-
post-steps:
40-
- slack/notify:
41-
branch_pattern: main
42-
event: fail
43-
mentions: "@images"
44-
template: basic_fail_1
45-
- cimg/build-and-deploy:
46-
name: "Deploy"
47-
resource-class: xlarge
48-
docker-repository: go
49-
filters:
50-
branches:
51-
only:
52-
- main
26+
- build_and_deploy:
5327
context:
54-
- slack-notification-access-token
55-
- slack-cimg-notifications
5628
- cimg-docker-image-building
5729
- cimg-docker-image-publishing
58-
post-steps:
59-
- slack/notify:
60-
branch_pattern: main
61-
event: fail
62-
mentions: "@images"
63-
template: basic_fail_1
30+
# - cimg/build-and-deploy:
31+
# name: "Test"
32+
# resource-class: xlarge
33+
# docker-namespace: ccitest
34+
# docker-repository: go
35+
# filters:
36+
# branches:
37+
# ignore:
38+
# - main
39+
# context:
40+
# - slack-notification-access-token
41+
# - slack-cimg-notifications
42+
# - cimg-docker-image-building
43+
# post-steps:
44+
# - slack/notify:
45+
# branch_pattern: main
46+
# event: fail
47+
# mentions: "@images"
48+
# template: basic_fail_1
49+
# - cimg/build-and-deploy:
50+
# name: "Deploy"
51+
# resource-class: xlarge
52+
# docker-repository: go
53+
# filters:
54+
# branches:
55+
# only:
56+
# - main
57+
# context:
58+
# - slack-notification-access-token
59+
# - slack-cimg-notifications
60+
# - cimg-docker-image-building
61+
# - cimg-docker-image-publishing
62+
# post-steps:
63+
# - slack/notify:
64+
# branch_pattern: main
65+
# event: fail
66+
# mentions: "@images"
67+
# template: basic_fail_1
68+
69+
jobs:
70+
build_and_deploy:
71+
machine:
72+
image: ubuntu-2404:current
73+
resource_class: xlarge
74+
steps:
75+
- run: sudo apt-get install qemu-system
76+
- run: docker run --privileged --rm tonistiigi/binfmt --install all
77+
- checkout
78+
- echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin
79+
- run: ./build-images.sh

1.23/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
2020
curl -sSL "https://go.dev/dl/go${GO_VER}.linux-${ARCH}.tar.gz" | sudo tar -xz -C /usr/local/ && \
2121
mkdir -p /home/circleci/go/bin
2222

23-
ENV GOPATH /home/circleci/go
24-
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
23+
ENV GOPATH="/home/circleci/go"
24+
ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH"
2525

2626
# Install related tools
2727
# renovate: datasource=github-releases depName=gotestyourself/gotestsum

0 commit comments

Comments
 (0)