Skip to content

Commit

Permalink
Break-glass publish via machine job with updated QEMU platform
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohnso5 committed Sep 9, 2024
1 parent be69ab6 commit 39e06e6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 37 deletions.
86 changes: 51 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,57 @@ workflows:
when:
not: << pipeline.parameters.cron >>
jobs:
- cimg/build-and-deploy:
name: "Test"
resource-class: xlarge
docker-namespace: ccitest
docker-repository: go
filters:
branches:
ignore:
- main
context:
- slack-notification-access-token
- slack-cimg-notifications
- cimg-docker-image-building
post-steps:
- slack/notify:
branch_pattern: main
event: fail
mentions: "@images"
template: basic_fail_1
- cimg/build-and-deploy:
name: "Deploy"
resource-class: xlarge
docker-repository: go
filters:
branches:
only:
- main
- build_and_deploy:
context:
- slack-notification-access-token
- slack-cimg-notifications
- cimg-docker-image-building
- cimg-docker-image-publishing
post-steps:
- slack/notify:
branch_pattern: main
event: fail
mentions: "@images"
template: basic_fail_1
# - cimg/build-and-deploy:
# name: "Test"
# resource-class: xlarge
# docker-namespace: ccitest
# docker-repository: go
# filters:
# branches:
# ignore:
# - main
# context:
# - slack-notification-access-token
# - slack-cimg-notifications
# - cimg-docker-image-building
# post-steps:
# - slack/notify:
# branch_pattern: main
# event: fail
# mentions: "@images"
# template: basic_fail_1
# - cimg/build-and-deploy:
# name: "Deploy"
# resource-class: xlarge
# docker-repository: go
# filters:
# branches:
# only:
# - main
# context:
# - slack-notification-access-token
# - slack-cimg-notifications
# - cimg-docker-image-building
# - cimg-docker-image-publishing
# post-steps:
# - slack/notify:
# branch_pattern: main
# event: fail
# mentions: "@images"
# template: basic_fail_1

jobs:
build_and_deploy:
machine:
image: ubuntu-2404:current
resource_class: xlarge
steps:
- run: sudo apt-get install qemu-system
- run: docker run --privileged --rm tonistiigi/binfmt --install all
- checkout
- run: echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USER" --password-stdin
- run: ./build-images.sh
4 changes: 2 additions & 2 deletions 1.23/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
curl -sSL "https://go.dev/dl/go${GO_VER}.linux-${ARCH}.tar.gz" | sudo tar -xz -C /usr/local/ && \
mkdir -p /home/circleci/go/bin

ENV GOPATH /home/circleci/go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
ENV GOPATH="/home/circleci/go"
ENV PATH="$GOPATH/bin:/usr/local/go/bin:$PATH"

# Install related tools
# renovate: datasource=github-releases depName=gotestyourself/gotestsum
Expand Down

0 comments on commit 39e06e6

Please sign in to comment.