|
|
|
@ -16,7 +16,7 @@ env: |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
build: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
|
@ -186,7 +186,7 @@ jobs: |
|
|
|
|
path: /tmp/build |
|
|
|
|
|
|
|
|
|
test: |
|
|
|
|
runs-on: ubuntu-16.04 |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
needs: build |
|
|
|
|
|
|
|
|
|
strategy: |
|
|
|
@ -260,7 +260,7 @@ jobs: |
|
|
|
|
for i in $(seq 1 5); do (docker exec mongo mongo rocketchat --eval 'db.dropDatabase()') && npm run testci && s=0 && break || s=$? && sleep 1; done; (exit $s) |
|
|
|
|
|
|
|
|
|
# notification: |
|
|
|
|
# runs-on: ubuntu-latest |
|
|
|
|
# runs-on: ubuntu-20.04 |
|
|
|
|
# needs: test |
|
|
|
|
|
|
|
|
|
# steps: |
|
|
|
@ -274,7 +274,7 @@ jobs: |
|
|
|
|
# token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
|
|
|
build-image-pr: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
if: github.event.pull_request.head.repo.full_name == github.repository |
|
|
|
|
|
|
|
|
|
strategy: |
|
|
|
@ -401,7 +401,7 @@ jobs: |
|
|
|
|
docker push $IMAGE_NAME |
|
|
|
|
|
|
|
|
|
deploy: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
if: github.event_name == 'release' || github.ref == 'refs/heads/develop' |
|
|
|
|
needs: test |
|
|
|
|
|
|
|
|
@ -479,7 +479,7 @@ jobs: |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
image-build: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
needs: deploy |
|
|
|
|
|
|
|
|
|
strategy: |
|
|
|
@ -556,7 +556,7 @@ jobs: |
|
|
|
|
docker push ${IMAGE}:develop |
|
|
|
|
|
|
|
|
|
services-image-build: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
needs: deploy |
|
|
|
|
|
|
|
|
|
strategy: |
|
|
|
|