-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from mamercad/github
Switch CI from Circle to GitHub
- Loading branch information
Showing
3 changed files
with
51 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: st2-docker | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
schedule: | ||
- cron: 0 1 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker-compose-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Docker-compose lint check | ||
run: docker-compose config | ||
|
||
docker-compose-up: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Pull Docker Images | ||
run: | | ||
docker-compose pull | ||
- name: Start st2 with docker-compose | ||
run: | | ||
docker-compose up --detach | ||
- name: Run st2 smoke-tests | ||
run: | | ||
sleep 60 | ||
docker-compose -f tests/st2tests.yaml up | ||
- name: Troubleshooting the build failure | ||
if: ${{ failure() }} | ||
run: | | ||
docker-compose ps | ||
# Display logs to help troubleshoot build failures, etc | ||
docker-compose logs --tail="500" st2api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters