Version of the separate Dockerfiles updated with Makefile #13
This file contains hidden or 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
| name: Docker Image CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| run: docker build -t dachs:test ./dockerfiles/dachs/ | |
| - name: Run Docker container | |
| run: docker run --name dachs_container -dt dachs:test | |
| - name: Verify container is running | |
| run: docker ps | grep -q dachs_container | |
| - name: Start dachs service | |
| run: docker exec dachs_container /dachs.sh start | |
| - name: Copy download script to container | |
| run: docker cp data/download_arihip.sh dachs_container:/tmp/download.sh | |
| - name: Download arihip data | |
| run: docker exec dachs_container /tmp/download.sh arihip /var/gavo/inputs | |
| - name: Import arihip data | |
| run: docker exec dachs_container dachs imp -M 1000 arihip/q.rd | |
| - name: Run all tests | |
| run: docker exec dachs_container dachs test ALL |