Containerize app and add Docker CI #1
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 CI | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| # The workflow only needs to read repository contents; it does not publish images. | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build container image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@v6 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: false | |
| tags: interview-simulator:ci | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |