Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Feb 5, 2020
1 parent 274bf99 commit 95e1521
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,42 @@ build-sc4s: &build-sc4s
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Docker Login
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker login -u $GITHUB_USER -p $GITHUB_TOKEN docker.pkg.github.com
- run:
name: Build SC4S
command: |
docker build --build-arg BRANCH=${SYSLOG} package \
-t docker.pkg.github.com/splunk-connect-for-syslog/stg-splunk-connect-for-syslog:sc4s-${SYSLOG}-<< pipeline.id >>
- run:
name: Push SC4S
command: |
docker push \
docker.pkg.github.com/splunk-connect-for-syslog/stg-splunk-connect-for-syslog:sc4s-${SYSLOG}-<< pipeline.id >>
build-splunk: &build-splunk
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Docker Login
command: |
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker login -u $GITHUB_USER -p $GITHUB_TOKEN docker.pkg.github.com
- run:
name: Build Splunk
command: |
docker build --build-arg SPLUNK_VERSION=${SPLUNK} splunk \
-t docker.pkg.github.com/splunk-connect-for-syslog/stg-splunk-connect-for-syslog:splunk-${SYSLOG}-<< pipeline.id >>
- run:
name: Push Splunk
command: |
docker push \
docker.pkg.github.com/splunk-connect-for-syslog/stg-splunk-connect-for-syslog:splunk-${SYSLOG}-<< pipeline.id >>
orbs:
docker: circleci/docker@0.5.20
Expand All @@ -38,6 +58,7 @@ orbs:


jobs:
#JOB SC4S
build-sc4s-3-25-1:
docker:
- image: circleci/buildpack-deps:18.04
Expand All @@ -50,29 +71,26 @@ jobs:
environment:
SYSLOG: 'master'
<<: *build-sc4s
#JOB SPLUNK
build-splunk-7-2:
docker:
- image: circleci/buildpack-deps:18.04
environment:
SPLUNK: '7.2'
<<: *build-splunk

build-splunk-7-3:
docker:
- image: circleci/buildpack-deps:18.04
environment:
SPLUNK: '7.3'
<<: *build-splunk

build-splunk-8-0:
docker:
- image: circleci/buildpack-deps:18.04
environment:
SPLUNK: '8.0'
<<: *build-splunk



workflows:
version: 2
build_and_deploy:
Expand Down

0 comments on commit 95e1521

Please sign in to comment.