diff --git a/ci/aws.yml b/ci/aws.yml index 374ff09..ee498c6 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -1,6 +1,5 @@ # This workflow will build and push a new container image to Amazon ECR, -# and then will deploy a new task definition to Amazon ECS, on every push -# to the master branch. +# and then will deploy a new task definition to Amazon ECS, whenever a release is created # # To use this workflow, you will need to complete the following set-up steps: # @@ -25,9 +24,8 @@ # and best practices on handling the access key credentials. on: - push: - branches: - - master + release: + types: [created] name: Deploy to Amazon ECS diff --git a/ci/azure.yml b/ci/azure.yml index 1e4c5b1..731418e 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -1,4 +1,4 @@ -# This workflow will build and push a node.js application to an Azure Web App on every push to the master branch. +# This workflow will build and push a node.js application to an Azure Web App whenever a release is created. # # To configure this workflow: # @@ -9,9 +9,8 @@ # For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions # For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples on: - push: - branches: - - master + release: + types: [created] env: AZURE_WEBAPP_NAME: your-app-name # set this to your application's name diff --git a/ci/docker-push.yml b/ci/docker-publish.yml similarity index 97% rename from ci/docker-push.yml rename to ci/docker-publish.yml index c7e9392..bb193ad 100644 --- a/ci/docker-push.yml +++ b/ci/docker-publish.yml @@ -35,7 +35,7 @@ jobs: docker build . --file Dockerfile fi - # Push image to GitHub Package Registry. + # Push image to GitHub Packages. # See also https://docs.docker.com/docker-hub/builds/ push: # Ensure test job passes before pushing image. diff --git a/ci/google.yml b/ci/google.yml index beb5e7f..3b743b6 100644 --- a/ci/google.yml +++ b/ci/google.yml @@ -1,4 +1,4 @@ -# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE. +# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE whenever a release is created # # To configure this workflow: # @@ -11,9 +11,8 @@ name: Build and Deploy to GKE on: - push: - branches: - - master + release: + types: [created] # Environment variables available to all jobs and steps in this workflow env: diff --git a/ci/properties/docker-push.properties.json b/ci/properties/docker-publish.properties.json similarity index 71% rename from ci/properties/docker-push.properties.json rename to ci/properties/docker-publish.properties.json index d23e119..1b36c0f 100644 --- a/ci/properties/docker-push.properties.json +++ b/ci/properties/docker-publish.properties.json @@ -1,6 +1,6 @@ -{ - "name": "Docker push", - "description": "Build, test and push Docker image to GitHub Package Registry.", - "iconName": "docker", - "categories": ["Dockerfile"] -} +{ + "name": "Publish Docker Container", + "description": "Build, test and push Docker image to GitHub Packages.", + "iconName": "docker", + "categories": ["Dockerfile"] +} diff --git a/ci/properties/gradle.properties.json b/ci/properties/gradle.properties.json index c58d68a..be0a613 100644 --- a/ci/properties/gradle.properties.json +++ b/ci/properties/gradle.properties.json @@ -1,5 +1,5 @@ { - "name": "Gradle", + "name": "Java with Gradle", "description": "Build and test a Java project using a Gradle wrapper script.", "iconName": "gradle", "categories": ["Java", "Gradle"] diff --git a/ci/properties/maven.properties.json b/ci/properties/maven.properties.json index 1875bdc..bcc8430 100644 --- a/ci/properties/maven.properties.json +++ b/ci/properties/maven.properties.json @@ -1,5 +1,5 @@ { - "name": "Maven", + "name": "Java with Maven", "description": "Build and test a Java project with Apache Maven.", "iconName": "maven", "categories": ["Java", "Maven"] diff --git a/ci/properties/npm-publish.properties.json b/ci/properties/npm-publish.properties.json index da3da18..d253373 100644 --- a/ci/properties/npm-publish.properties.json +++ b/ci/properties/npm-publish.properties.json @@ -1,5 +1,5 @@ { - "name": "Node.js Package", + "name": "Publish Node.js Package", "description": "Publishes a Node.js package to npm and GitHub Packages.", "iconName": "node-package-transparent", "categories": ["JavaScript", "SDLC"]