diff --git a/workflow-templates/docker-build-deploy.json b/workflow-templates/docker-build-deploy.json new file mode 100644 index 0000000..cad1bd3 --- /dev/null +++ b/workflow-templates/docker-build-deploy.json @@ -0,0 +1,12 @@ +{ + "name": "Custom Docker Build & Deploy", + "description": "This pipeline will take a Dockerfile and provides a build chain to push the image to Artifactory as well as deploying it to Janus whenever a new commit is pushed to the main branch", + "iconName": "octicon repo", + "categories": [ + "deployment", + "Docker" + ], + "filePatterns": [ + "^Dockerfile" + ] +} diff --git a/workflow-templates/docker-build-deploy.yml b/workflow-templates/docker-build-deploy.yml new file mode 100644 index 0000000..3f7bd55 --- /dev/null +++ b/workflow-templates/docker-build-deploy.yml @@ -0,0 +1,19 @@ +# For official documentation on this workflow, please refer to the link below. +# https://github.com/brandwatch/bw-workflow-actions/blob/dev/workflows/docker/generic-docker-build-and-deploy.md + +name: CI Pipeline - Custom Docker Image Build & Deploy + +on: + push: + branches: + - main + +permissions: + checks: write + contents: read + +jobs: + build-pipeline: + name: "Build & Deploy Docker Image" + uses: brandwatch/bw-workflow-actions/.github/workflows/generic-docker-build-and-deploy.yml@production + secrets: inherit