Skip to content

Commit

Permalink
Merge pull request #41 from grebtsew/docker-build-cicd
Browse files Browse the repository at this point in the history
Create docker-build.yml
  • Loading branch information
grebtsew authored Oct 2, 2024
2 parents 0a83b7c + 4f2efb2 commit e0825e7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Docker Build

on:
# Run on Pull Requests
pull_request:
branches:
- main
- '**' # Or any other branches you want to include

# Run once a month at midnight on the first day of the month
schedule:
- cron: '0 0 1 * *'

jobs:
build:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# Step 2: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# Step 3: Build the Docker image
- name: Build Docker image
run: |
docker build -t my-image-name .

0 comments on commit e0825e7

Please sign in to comment.