-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
schedule: | ||
# Runs every day at 12:00 AM UTC | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: # Allows manual trigger | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
environment: dockerhub | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag caldera-docker:latest | ||
|
||
- name: Log in to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Tag the Docker image | ||
run: docker tag phoromatic-server:latest ${{ secrets.DOCKERHUB_USERNAME }}/caldera-docker:latest | ||
|
||
- name: Push the Docker image to DockerHub | ||
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/caldera-docker:latest |