Skip to content

Commit

Permalink
Use self-hosted runners for pushing images (#6467)
Browse files Browse the repository at this point in the history
  • Loading branch information
phelpsdb authored Oct 26, 2023
1 parent 260cd05 commit 7d51cfe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .circleci/src/jobs/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 7d51cfe

Please sign in to comment.