Skip to content

Commit

Permalink
Splitting out dev and master deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
kdvalin committed Mar 23, 2021
1 parent d48542d commit 15347ff
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Deploy MYR
on:
push:
branches:
- master
- dev

jobs:
Expand All @@ -25,5 +24,5 @@ jobs:
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.MYR_ACCESS_TOKEN }}
event-type: update_${BRANCH_NAME}
event-type: update_dev
repository: engaging-computing/MYR-build
28 changes: 28 additions & 0 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy production MYR

on:
push:
branches:
- master

jobs:
update_upstream:
runs-on: ubuntu-latest
container:
image: docker
steps:
- uses: actions/checkout@v1
- name: Set the branch variable
uses: nelonoel/[email protected]
- name: Log into Quay
run: docker login quay.io -u umlecg+myr_bot -p ${{ secrets.QUAY_BOT_PASSWORD }}
- name: Build the docker image
run: docker build -t quay.io/umlecg/myr-backend:${BRANCH_NAME} .
- name: Push the new image
run: docker push quay.io/umlecg/myr-backend:${BRANCH_NAME}
- name: Notify the build repository
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.MYR_ACCESS_TOKEN }}
event-type: update_master
repository: engaging-computing/MYR-build

0 comments on commit 15347ff

Please sign in to comment.