Add env_file to compose.yml #2
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: Docker Image CI | |
on: | |
push: | |
paths: | |
- "Dockerfile" | |
- "requirements.txt" | |
- "compose.yml" | |
pull_request: | |
paths: | |
- "Dockerfile" | |
- "requirements.txt" | |
- "compose.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag ghcr.io/shadoll/scatcher:latest | |
- name: Push the Docker image | |
run: docker push ghcr.io/shadoll/scatcher:latest |