From 7d51cfe6b5be499b2ca1110976afd986c9157ae9 Mon Sep 17 00:00:00 2001 From: Danny Date: Thu, 26 Oct 2023 12:14:23 -0700 Subject: [PATCH] Use self-hosted runners for pushing images (#6467) --- .circleci/src/jobs/push-docker-image.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.circleci/src/jobs/push-docker-image.yml b/.circleci/src/jobs/push-docker-image.yml index eee028368d4..e3f497ed227 100644 --- a/.circleci/src/jobs/push-docker-image.yml +++ b/.circleci/src/jobs/push-docker-image.yml @@ -6,9 +6,8 @@ parameters: description: 'Whether to notify Slack on failure' type: boolean default: false -resource_class: large -machine: - image: ubuntu-2204:current +machine: true +resource_class: audiusproject/gcp-n2-standard-4 steps: - checkout: path: '~/audius-protocol' @@ -18,6 +17,10 @@ steps: command: echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin - run: . ~/.profile; audius-compose build --prod "<< parameters.service >>" - run: . ~/.profile; audius-compose push --prod "<< parameters.service >>" + - run: + when: always + name: Log out of Docker + command: docker logout - run: when: on_fail name: Alert Slack of failure