mirror of
https://github.com/shadoll/scatcher.git
synced 2025-12-20 03:26:59 +00:00
Update Docker Image CI workflow
This commit is contained in:
22
.github/workflows/docker-image.yml
vendored
22
.github/workflows/docker-image.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user