Add Docker build and push CI/CD workflow configurations for use by Gi… #1
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
# Docker build and push workflow | |
name: Run CI/CD Docker Workflow | |
on: | |
workflow_dispatch: | |
schedule: | |
# Time is based on UTC timezone | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# * * * * * | |
# * is a special character in YAML so you have to quote this string | |
- cron: "0 20 * * THU" | |
# | |
# COMMENT OUT PUSH TRIGGER BELOW WHEN DONE TESTING | |
push: | |
branches: | |
- "dev-docker**" | |
jobs: | |
run-workflow: | |
name: "Run automated docker workflow" | |
uses: rcsb/devops-cicd-github-actions/.github/workflows/workflow-docker.yaml@master | |
with: | |
dockerfile_location: "Dockerfile" # The location of the Dockerfile relative to the root of the repository. Defaults to "Dockerfile". | |
repo_project: "devops" # REQUIRED. The name of the project or organization in the remote Docker image repository. | |
docker_image_name: "rcsb-exdb" # REQUIRED. The name of the Docker image to create. | |
docker_build_context: "." # The path location of the docker build context, relative to the project root. Defaults to the project root. | |
# repo_url: # The URL of the remote Docker image repository. Defaults to "harbor.devops.k8s.rcsb.org". | |
# mainline_branch: # The mainline branch for the repo. Deployments to the staging and production environments are done only on push to this branch. Defaults to master. | |
# do_staging_build: # Build, tag, and push a docker image with the staging tag. | |
# do_production_build: # Build, tag, and push a docker image with the production tag. |