Skip to content

Commit

Permalink
Upload collector image RHEL DSOP bundle on release (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbycochran authored Feb 12, 2020
1 parent 6d33b91 commit 6f3d654
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ jobs:
machine: true
environment:
- INSTALL_DIRECTORY: /tmp
- GCLOUD_DSOP_BUCKET: "gs://dsop-artifacts.stackrox.io"

steps:
- initcommand
Expand Down Expand Up @@ -745,10 +746,6 @@ jobs:
"${build_args[@]}" \
container-combined
- store_artifacts:
path: ~/workspace/go/src/github.com/stackrox/collector/collector/container/rhel/bundle.tar.gz
destination: "bundle.tar.gz"

- run:
name: Sanity check images
command: |
Expand All @@ -772,6 +769,14 @@ jobs:
echo "Pushing collector rhel latest image"
docker push "stackrox/collector-rhel:${COLLECTOR_VERSION}-latest"
- run:
name: Upload collector image RHEL DSOP bundle on release
command: |
if [[ -n "$CIRCLE_TAG" ]]; then
gsutil cp "${SOURCE_ROOT}/collector/container/rhel/bundle.tar.gz" \
"${GCLOUD_DSOP_BUCKET}/collector-rhel/${COLLECTOR_VERSION}-latest/"
fi
kernel-module-build-failures-check:
docker:
- image: docker.io/stackrox/apollo-ci:collector-0.2.8
Expand Down

0 comments on commit 6f3d654

Please sign in to comment.