Update launcher.yml #69
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
name: Workflow | |
on: | |
push | |
jobs: | |
image-builder: | |
name: Checkout prerequisites and build image | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout current repo | |
uses: actions/checkout@v3 | |
- | |
name: Use the provided Dockerfile to build an image | |
run: docker build -t smart_calc . | |
- | |
name: List docker images | |
run: docker images | |
- | |
name: Run the image (stepname) | |
run: docker run -d --name smart_calc_container smart_calc | |
- | |
name: Execute scripts and log output | |
run: | | |
sleep 7 | |
docker exec smart_calc_container /bin/bash -c "./test.sh" | |