Update Docker Image CI workflow

This commit is contained in:
sHa
2024-03-12 17:46:12 +02:00
parent 13a429eab6
commit 974df5bee4

View File

@@ -2,17 +2,25 @@ name: Docker Image CI
on: on:
push: push:
branches: [ "main" ] paths:
- "Dockerfile"
- "requirements.txt"
pull_request: pull_request:
branches: [ "main" ] paths:
- "Dockerfile"
- "requirements.txt"
- "compose.yml"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - name: Checkout the repository
- name: Build the Docker image uses: actions/checkout@v4
run: docker build . --file Dockerfile --tag my-image-name:latest
- 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