diff --git a/.github/workflows/deploy_app.yaml b/.github/workflows/deploy_app.yaml new file mode 100644 index 0000000..b290a16 --- /dev/null +++ b/.github/workflows/deploy_app.yaml @@ -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 }} \ No newline at end of file diff --git a/kubernetes/deployment.tmpl b/kubernetes/deployment.tmpl index 1102c8f..7dd1df5 100644 --- a/kubernetes/deployment.tmpl +++ b/kubernetes/deployment.tmpl @@ -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"