Skip to content

Commit

Permalink
Merge pull request #26 from zooniverse/gha-deploy
Browse files Browse the repository at this point in the history
Deploy with GHA
  • Loading branch information
zwolf authored Jan 31, 2024
2 parents 0d988c7 + ad6edf6 commit f0f18cc
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 74 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy to Production

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build_and_push_image:
name: Build and Push Image
uses: zooniverse/ci-cd/.github/workflows/build_and_push_image.yaml@main
with:
repo_name: thumbnailer
commit_id: ${{ github.sha }}

deploy_production:
needs: build_and_push_image
name: Deploy to Production
uses: zooniverse/ci-cd/.github/workflows/deploy_app.yaml@main
with:
app_name: thumbnailer
repo_name: thumbnailer
commit_id: ${{ github.sha }}
environment: production
deploy_check: false
secrets:
creds: ${{ secrets.AZURE_AKS }}

slack_notification:
name: Send Slack notification
uses: zooniverse/ci-cd/.github/workflows/slack_notification.yaml@main
needs: deploy_production
if: always()
with:
commit_id: ${{ github.sha }}
job_name: Deploy to Production / deploy_production
status: ${{ needs.deploy_production.result }}
# Customize the slack message
title: 'Thumbnailer production deploy complete'
title_link: 'thumbnails.zooniverse.org'
secrets:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
73 changes: 0 additions & 73 deletions Jenkinsfile

This file was deleted.

2 changes: 1 addition & 1 deletion kubernetes/deployment.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: thumbnailer-nginx
image: zooniverse/thumbnailer:__IMAGE_TAG__
image: ghcr.io/zooniverse/thumbnailer:__IMAGE_TAG__
resources:
requests:
memory: "150Mi"
Expand Down

0 comments on commit f0f18cc

Please sign in to comment.