Skip to content

Commit

Permalink
Fix example content missing on CircleCI (#360)
Browse files Browse the repository at this point in the history
* Fix example content missing on CircleCI

* add extra example fix

---------

Co-authored-by: Mateo Arboleda <[email protected]>
  • Loading branch information
deiga and marboledacci authored Sep 30, 2024
1 parent b942008 commit e76d2fe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
42 changes: 21 additions & 21 deletions src/examples/build_and_push_image_w_registry_login.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ usage:
aws-ecr: circleci/[email protected]
# importing aws-cli orb is required for authentication
aws-cli: circleci/[email protected]
workflows:
build-and-push-image-with-container-registry-login:
jobs:
- aws-ecr/build_and_push_image:
# must set container registry login to true
container_registry_login: true
container_registry_login_step:
# custom login step for heroku.
- run: docker login -u ${HEROKU_USERNAME} -p ${HEROKU_API_KEY}
# custom login step for GitHub Container Registry.
- run: docker login -u ${GITHUB_USERNAME} -p ${GITHUB_TOKEN}
# custom login step for DockerHub.
- run: docker login -u ${DOCKERHUB_ID} -p ${DOCKERHUB_PASSWORD}
auth:
- aws-cli/setup:
role_arn: arn:aws:iam::123456789012
repo: my-sample-repo
tag: sampleTag
dockerfile: Dockerfile
path: .
region: us-west-2
workflows:
build-and-push-image-with-container-registry-login:
jobs:
- aws-ecr/build_and_push_image:
# must set container registry login to true
container_registry_login: true
container_registry_login_step:
# custom login step for heroku.
- run: docker login -u ${HEROKU_USERNAME} -p ${HEROKU_API_KEY}
# custom login step for GitHub Container Registry.
- run: docker login -u ${GITHUB_USERNAME} -p ${GITHUB_TOKEN}
# custom login step for DockerHub.
- run: docker login -u ${DOCKERHUB_ID} -p ${DOCKERHUB_PASSWORD}
auth:
- aws-cli/setup:
role_arn: arn:aws:iam::123456789012
repo: my-sample-repo
tag: sampleTag
dockerfile: Dockerfile
path: .
region: us-west-2
10 changes: 5 additions & 5 deletions src/examples/build_test_then_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ usage:
repo: << parameters.repo >>
region: << parameters.region >>
tag: << parameters.tag >>
workflows:
build-image-test-image-push-image-with-buildx:
jobs:
- build-test-then-push-with-buildx:
context: CircleCI_OIDC_Token
workflows:
build-image-test-image-push-image-with-buildx:
jobs:
- build-test-then-push-with-buildx:
context: CircleCI_OIDC_Token

0 comments on commit e76d2fe

Please sign in to comment.