Test Docker Build #4
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: 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 . |