update: to run test #3
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: Question-2 | |
on: | |
push: | |
branches: [ "main" ] | |
paths: [ "Q2/**" ] | |
jobs: | |
build-and-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: current directory | |
run: pwd | |
- name: Build the Docker image | |
run: docker build -t my-image Q2/Dockerfile | |
- name: Run the code | |
run: docker run my-image |