Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix deploy, add slack messages#176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
billoneil merged 1 commit intomasterfromauto-deploy-master
Dec 20, 2020
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion.github/workflows/build-stubbornjava-web.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -107,16 +107,46 @@ jobs:
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v3.x

- name: Slack Notification - Deploying
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: deploys
SLACK_COLOR: 'warning'
SLACK_MESSAGE: 'Deploying containers.pkg.github.com/stubbornjava/stubbornjava-webapp:${{ env.GITHUB_SHA_SHORT }}'
SLACK_TITLE: Deploying StubbornJava
SLACK_USERNAME: deploy_bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

- name: deploy to cluster
uses: steebchen/kubectl@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
with:
args: set image --record stubbornjava-deploymentcontainer=containers.pkg.github.com/stubbornjava/stubbornjava-webapp:${{ env.GITHUB_SHA_SHORT }}
args: set image --recorddeployment/stubbornjava-deploymentsj-web=containers.pkg.github.com/stubbornjava/stubbornjava-webapp:${{ env.GITHUB_SHA_SHORT }}
- name: verify deployment
uses: steebchen/kubectl@master
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
KUBECTL_VERSION: "1.20"
with:
args: '"rollout status stubbornjava-deployment"'

- name: Slack Notification - Deploy Failed
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: deploys
SLACK_COLOR: 'danger'
SLACK_MESSAGE: 'containers.pkg.github.com/stubbornjava/stubbornjava-webapp:${{ env.GITHUB_SHA_SHORT }}'
SLACK_TITLE: Deploy StubbornJava Failed!
SLACK_USERNAME: deploy_bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Slack Notification - Deploy Succeeded
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: deploys
SLACK_COLOR: 'good'
SLACK_MESSAGE: 'containers.pkg.github.com/stubbornjava/stubbornjava-webapp:${{ env.GITHUB_SHA_SHORT }}'
SLACK_TITLE: Deploy StubbornJava Succeeded!
SLACK_USERNAME: deploy_bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

[8]ページ先頭

©2009-2025 Movatter.jp