Trying to tag the docker image #5
Workflow file for this run
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: Build | |
on: [push] | |
jobs: | |
run-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Docker | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install docker | |
- name: Pull Docker Image | |
run: | | |
sudo docker pull nwdepatie/ner-gcc-arm | |
- name: Run Docker Container | |
run: | | |
sudo docker run nwdepatie/ner-gcc-arm:latest -t ner-gcc-arm | |
- name: List Docker Images | |
run: | | |
docker ps | |
- name: Execute Make | |
run: | | |
sudo docker exec -it \ | |
ner-gcc-arm:latest sh -c | |
"if ! make; then | |
echo "The application has failed to build." | |
exit 1 # This will cause the workflow to fail | |
fi" |