forked from engaging-computing/MYR
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 915 Bytes
/
deploy_beta.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Deploy staging image
on:
push:
branches:
- dev
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-frontend:${BRANCH_NAME} --build-arg REACT_APP_GOOGLE_CLIENTID=${{ secrets.MYR_GOOGLE_OAUTH2 }} .
- name: Push the new image
run: docker push quay.io/umlecg/myr-frontend:${BRANCH_NAME}
- name: Notify the build repository
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.MYR_ACCESS_TOKEN }}
event-type: update_dev
repository: engaging-computing/MYR-build