Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
global: deploy to prod images
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Sep 9, 2020
1 parent 6c45c9f commit db17a63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 59 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
id: describe
run: |
echo "::set-output name=tag::$(git describe --always --tags)"
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' || github.event_name == 'release' }}

- name: build and push Docker image
uses: docker/build-push-action@v1
Expand All @@ -52,7 +52,7 @@ jobs:
repository: inspirehep/editor
add_git_labels: true
tags: ${{ steps.describe.outputs.tag }}
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' || github.event_name == 'release' }}

- name: deploy on qa
uses: peter-evans/repository-dispatch@v1
Expand All @@ -65,3 +65,15 @@ jobs:
"image": "inspirehep/editor",
"tag": "${{ steps.describe.outputs.tag }}"}
if: ${{ github.event_name == 'push' }}

- name: deploy on prod
uses: peter-evans/repository-dispatch@v1
with:
repository: inspirehep/kubernetes
token: ${{ secrets.INSPIRE_BOT_TOKEN }}
event-type: deploy
client-payload: >
{"environment": "prod",
"image": "inspirehep/editor",
"tag": "${{ steps.describe.outputs.tag }}"}
if: ${{ github.event_name == 'release' }}
57 changes: 0 additions & 57 deletions build-and-deploy.sh

This file was deleted.

0 comments on commit db17a63

Please sign in to comment.