Chore: Change Ubuntu version to 20.04 on all GitHub Actions (#23200)

Co-authored-by: Diego Sampaio <chinello@gmail.com>
pull/23205/head
Kevin Aleman 4 years ago committed by GitHub
parent a993f1866a
commit 651167594c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .github/workflows/build_and_test.yml

@ -16,7 +16,7 @@ env:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
@ -186,7 +186,7 @@ jobs:
path: /tmp/build path: /tmp/build
test: test:
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
needs: build needs: build
strategy: 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) 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: # notification:
# runs-on: ubuntu-latest # runs-on: ubuntu-20.04
# needs: test # needs: test
# steps: # steps:
@ -274,7 +274,7 @@ jobs:
# token: ${{ secrets.GITHUB_TOKEN }} # token: ${{ secrets.GITHUB_TOKEN }}
build-image-pr: build-image-pr:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
if: github.event.pull_request.head.repo.full_name == github.repository if: github.event.pull_request.head.repo.full_name == github.repository
strategy: strategy:
@ -401,7 +401,7 @@ jobs:
docker push $IMAGE_NAME docker push $IMAGE_NAME
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
if: github.event_name == 'release' || github.ref == 'refs/heads/develop' if: github.event_name == 'release' || github.ref == 'refs/heads/develop'
needs: test needs: test
@ -479,7 +479,7 @@ jobs:
fi fi
image-build: image-build:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
needs: deploy needs: deploy
strategy: strategy:
@ -556,7 +556,7 @@ jobs:
docker push ${IMAGE}:develop docker push ${IMAGE}:develop
services-image-build: services-image-build:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
needs: deploy needs: deploy
strategy: strategy:

Loading…
Cancel
Save