Adding pusher to K8S deploy
This commit is contained in:
parent
e89ed8cca8
commit
ea6a8ff406
29
.github/workflows/build-and-deploy.yml
vendored
29
.github/workflows/build-and-deploy.yml
vendored
@ -43,7 +43,30 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# Create a slugified value of the branch
|
# Create a slugified value of the branch
|
||||||
- uses: rlespinasse/github-slug-action@1.1.1
|
- uses: rlespinasse/github-slug-action@3.1.0
|
||||||
|
|
||||||
|
- name: "Build and push back image"
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
dockerfile: back/Dockerfile
|
||||||
|
path: ./
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
repository: thecodingmachine/workadventure-back
|
||||||
|
tags: ${{ env.GITHUB_REF_SLUG }}
|
||||||
|
add_git_labels: true
|
||||||
|
|
||||||
|
build-pusher:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Create a slugified value of the branch
|
||||||
|
- uses: rlespinasse/github-slug-action@3.1.0
|
||||||
|
|
||||||
- name: "Build and push back image"
|
- name: "Build and push back image"
|
||||||
uses: docker/build-push-action@v1
|
uses: docker/build-push-action@v1
|
||||||
@ -66,7 +89,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# Create a slugified value of the branch
|
# Create a slugified value of the branch
|
||||||
- uses: rlespinasse/github-slug-action@1.1.1
|
- uses: rlespinasse/github-slug-action@3.1.0
|
||||||
|
|
||||||
- name: "Build and push back image"
|
- name: "Build and push back image"
|
||||||
uses: docker/build-push-action@v1
|
uses: docker/build-push-action@v1
|
||||||
@ -90,7 +113,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
# Create a slugified value of the branch
|
# Create a slugified value of the branch
|
||||||
- uses: rlespinasse/github-slug-action@1.1.1
|
- uses: rlespinasse/github-slug-action@3.1.0
|
||||||
|
|
||||||
- name: "Build and push front image"
|
- name: "Build and push front image"
|
||||||
uses: docker/build-push-action@v1
|
uses: docker/build-push-action@v1
|
||||||
|
@ -24,6 +24,24 @@
|
|||||||
"ADMIN_API_URL": adminUrl,
|
"ADMIN_API_URL": adminUrl,
|
||||||
} else {}
|
} else {}
|
||||||
},
|
},
|
||||||
|
"pusher": {
|
||||||
|
"image": "thecodingmachine/workadventure-pusher:"+tag,
|
||||||
|
"host": {
|
||||||
|
"url": "pusher."+url,
|
||||||
|
"https": "enable"
|
||||||
|
},
|
||||||
|
"ports": [8080],
|
||||||
|
"env": {
|
||||||
|
"SECRET_KEY": "tempSecretKeyNeedsToChange",
|
||||||
|
"ADMIN_API_TOKEN": env.ADMIN_API_TOKEN,
|
||||||
|
"JITSI_ISS": env.JITSI_ISS,
|
||||||
|
"JITSI_URL": env.JITSI_URL,
|
||||||
|
"API_URL": "api."+url,
|
||||||
|
"SECRET_JITSI_KEY": env.SECRET_JITSI_KEY,
|
||||||
|
} + if adminUrl != null then {
|
||||||
|
"ADMIN_API_URL": adminUrl,
|
||||||
|
} else {}
|
||||||
|
},
|
||||||
"front": {
|
"front": {
|
||||||
"image": "thecodingmachine/workadventure-front:"+tag,
|
"image": "thecodingmachine/workadventure-front:"+tag,
|
||||||
"host": {
|
"host": {
|
||||||
|
Loading…
Reference in New Issue
Block a user