Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CircleCI Generated] update-vendor-7900 #353

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Next Next commit
implement update-vendor job
  • Loading branch information
dandimeo committed Oct 26, 2023
commit 906bb7450c3442458d8bef872c6575a4ab0bba19
46 changes: 38 additions & 8 deletions .circleci/base_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,32 @@ commands:
git push -f

jobs:
update-vendor:
docker:
- image: cimg/go:1.21.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

steps:
- add_ssh_keys:
fingerprints:
- "7a:1d:7f:0a:70:eb:2b:7d:25:10:9b:e8:dc:04:53:9a"
- "28:4f:0b:b7:71:cd:39:ab:c0:33:65:4f:da:6a:cc:8e"
- "bc:4d:f3:df:53:ad:22:d8:60:5d:10:d8:fd:74:d2:cd"
- run: ssh-keyscan github.com >> ~/.ssh/known_hosts
- run:
name: Clone docs repo
command: |
git clone --depth 1 https://github.com/arangodb/docs-hugo.git --branch $CIRCLE_BRANCH
- run:
name: Update vendor dependencies folder
command: |
cd docs-hugo/toolchain/arangoproxy
rm -r vendor go.mod go.sum
go mod tidy
go mod vendor
- persist_to_workspace:
root: .
paths:
- docs-hugo

create-docs-images:
parameters:
architecture:
Expand All @@ -324,10 +350,8 @@ jobs:
image: ubuntu-2004:current
resource_class: << parameters.executor >>
steps:
- run:
name: Clone docs repo
command: |
git clone --depth 1 https://github.com/arangodb/docs-hugo.git --branch $CIRCLE_BRANCH
- attach_workspace:
at: .
- run:
name: Create docker images
command: |
Expand All @@ -341,11 +365,11 @@ jobs:
name: Push docker images
command: |
cd docs-hugo/toolchain/docker
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin
# echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin

docker push arangodb/docs-hugo:site-<< parameters.architecture >>
docker push arangodb/docs-hugo:arangoproxy-<< parameters.architecture >>
docker push arangodb/docs-hugo:toolchain-<< parameters.architecture >>
# docker push arangodb/docs-hugo:site-<< parameters.architecture >>
# docker push arangodb/docs-hugo:arangoproxy-<< parameters.architecture >>
# docker push arangodb/docs-hugo:toolchain-<< parameters.architecture >>


plain-build:
Expand Down Expand Up @@ -533,15 +557,21 @@ workflows:
create-docs-images-amd64:
when: { equal: [ create-docs-images-amd64, << pipeline.parameters.workflow >> ] }
jobs:
- update-vendor
- create-docs-images:
architecture: "amd64"
executor: "medium"
requires:
- update-vendor
create-docs-images-arm64:
when: { equal: [ create-docs-images-arm64, << pipeline.parameters.workflow >> ] }
jobs:
- update-vendor
- create-docs-images:
architecture: "arm64"
executor: "arm.medium"
requires:
- update-vendor
plain:
when: { equal: [ plain-build, << pipeline.parameters.workflow >> ] }
jobs:
Expand Down