Skip to content

Commit

Permalink
Merge pull request #508 from CVEProject/dev
Browse files Browse the repository at this point in the history
Update staging
  • Loading branch information
mattrbianchi authored Feb 28, 2022
2 parents b09dee4 + 03ab46f commit facb0f8
Show file tree
Hide file tree
Showing 81 changed files with 12,697 additions and 16,007 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/latest-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Docker latest"

on:
pull_request:
branches: [staging] # This workflow will run when a PR is merged or when a commit is made directly to these branches.
# NOTE: We want to create a "latest" Github package on changes to `dev`.

jobs:
build-and-push-image:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
# we can run tests here, and require that they pass
# but tests should pass on the pull request used to kick this job off,
# unless we allow changes to `dev` or `release` branches without PRs
# needs: npm-run-tests
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Log in to GCR
run: |
docker login docker.pkg.github.com \
--username ${{ github.actor }} \
--password ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker latest image
run: |
docker build \
--file docker/Dockerfile \
--tag docker.pkg.github.com/cveproject/cve-services/cveservices-staging:latest .
- name: Push Docker latest image to GCR
run: docker push docker.pkg.github.com/cveproject/cve-services/cveservices-staging:latest
8 changes: 7 additions & 1 deletion .github/workflows/test-http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ jobs:
- name: Run Black Box Tests
run: |
cd test-http/
docker exec demon pytest src/ > src/testOutput.txt
docker exec demon pytest src/ | tee src/testOutput.txt
- name: Archive Test Results
uses: actions/upload-artifact@v2
with:
name: test-results
path: test-http/src/testOutput.txt
retention-days: 1
- name: Extract Tests Results
run: docker exec demon /bin/bash src/parse_tests_output.sh | (read foo; echo "##[set-output name=result;]$(echo $foo)")
id: tests_result
Expand Down
Loading

0 comments on commit facb0f8

Please sign in to comment.