-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2577ed
commit f6ca4dd
Showing
4 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
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,49 @@ | ||
name: docker CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "0 0 * * MON" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: docker | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Create volume | ||
run: bash docker_create_volume.sh | ||
- name: Create image | ||
run: bash docker_create_image.sh | ||
- name: Create container | ||
run: bash docker_create_container.sh | ||
- name: Create database | ||
run: bash docker_create_database.sh | ||
- name: Start container | ||
run: bash docker_start.sh | ||
- name: Run tests | ||
run: bash docker_run_tests.sh | ||
- name: Stop container | ||
run: bash docker_stop.sh | ||
- name: Destroy container | ||
run: bash docker_destroy_container.sh | ||
|
||
warn: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'dmf-unicatt/turing-dmf' && github.ref == 'refs/heads/main' && github.event_name == 'schedule' | ||
steps: | ||
- name: Warn if scheduled workflow is about to be disabled | ||
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@main | ||
with: | ||
workflow-filename: docker_ci.yml | ||
days-elapsed: 50 |
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
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,13 @@ | ||
#!/bin/bash | ||
# Copyright (C) 2024 by the Turing @ DMF authors | ||
# | ||
# This file is part of Turing @ DMF. | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
set -e | ||
|
||
# Do not run any further if we are not connected to the internet | ||
wget -q --spider https://www.google.com | ||
|
||
docker build --pull -t turing-dmf:latest -f Dockerfile .. |
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