Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Feb 5, 2020
1 parent 29f1625 commit 4b595d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
42 changes: 5 additions & 37 deletions .github/workflows/test_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# syslog-version: [3.25.1,master]
# splunk-version: [7.2,7.3,8.0,edge]
syslog-version: [3.25.1]
splunk-version: [8.0]
syslog-version: [3.25.1,master]

steps:
- name: Checkout private tools
Expand All @@ -23,37 +20,8 @@ jobs:
username: ${{ secrets.GitHub_User }}
password: ${{ secrets.GitHub_PAT }}

- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Build
run: |
docker-compose -f tests/docker-compose.yml build
- name: Build
- name: Build for ${{ matrix.version }}
run: |
docker-compose -f tests/docker-compose.yml up -d
sleep 80
docker-compose -f tests/docker-compose.yml logs
env:
SPLUNK_PASSWORD: ${{ secrets.SPLUNK_PASSWORD }}
SPLUNK_HEC_TOKEN: ${{ secrets.SPLUNK_HEC_TOKEN }}
SPLUNK_START_ARGS: ${{ secrets.SPLUNK_START_ARGS }}
- name: Test with pytest
run: |
pip install pytest
pytest -v \
--rootdir=$(pwd) \
--splunk_type=external \
--splunk_host=127.0.0.1 \
--splunk_port=8089 \
--splunk_version=${{ matrix.splunk-version }} \
--splunk_password=${{ secrets.SPLUNK_PASSWORD }}
env:
SPLUNK_PASSWORD: ${{ secrets.SPLUNK_PASSWORD }}
SPLUNK_HEC_TOKEN: ${{ secrets.SPLUNK_HEC_TOKEN }}
SPLUNK_START_ARGS: ${{ secrets.SPLUNK_START_ARGS }}
docker build --build-arg BRANCH=${{ matrix.version }} package \
-t docker.pkg.github.com/${GITHUB_REPOSITORY}/stg-splunk-connect-for-syslog:sc4s-${{ matrix.version }}-${{ github.sha }}
3 changes: 2 additions & 1 deletion package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#
#You should have received a copy of the CC0 legalcode along with this
#work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
FROM docker.pkg.github.com/splunk/splunk-syslog-ng-container/splunk-syslog-ng-container:3.25.1
ARG BRANCH=master
FROM docker.pkg.github.com/splunk/splunk-syslog-ng-container/splunk-syslog-ng-container:${BRANCH}

COPY --from=hairyhenderson/gomplate:v3.5.0 /gomplate /usr/local/bin/gomplate

Expand Down

0 comments on commit 4b595d1

Please sign in to comment.