forked from engaging-computing/MYR-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splitting out dev and master deployments
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |