|
16 | 16 |
|
17 | 17 | jobs: |
18 | 18 | base: |
19 | | - # `unbuntu-20.04-8core` for arch amd64 non-scheduled builds |
20 | | - # `unbuntu-20.04` for arch amd64 scheduled builds |
21 | | - # `unbuntu-20.04-8core-arm` for arch arm64 non-scheduled builds |
22 | | - # `unbuntu-20.04-2core-arm` for arch arm64 scheduled builds |
23 | | - runs-on: ubuntu-20.04${{ ((github.event_name != 'schedule') && '-8core') || (( matrix.arch == 'arm64' && '-2core' ) || '') }}${{ (matrix.arch == 'arm64') && '-arm' || '' }} |
| 19 | + # `unbuntu-22.04-8core` for arch amd64 non-scheduled builds |
| 20 | + # `unbuntu-22.04` for arch amd64 scheduled builds |
| 21 | + # `unbuntu-22.04-8core-arm` for arch arm64 non-scheduled builds |
| 22 | + # `unbuntu-22.04-2core-arm` for arch arm64 scheduled builds |
| 23 | + runs-on: ubuntu-22.04${{ ((github.event_name != 'schedule') && '-8core') || (( matrix.arch == 'arm64' && '-2core' ) || '') }}${{ (matrix.arch == 'arm64') && '-arm' || '' }} |
24 | 24 | strategy: |
25 | 25 | matrix: |
26 | 26 | arch: [amd64, arm64] |
27 | 27 | timeout-minutes: ${{ (github.event_name != 'schedule' && 30) || ((matrix.arch == 'arm64' && 60) || 30) }} |
28 | 28 | steps: |
29 | | - - name: Install Docker |
30 | | - if: ${{ matrix.arch == 'arm64' }} |
31 | | - run: | |
32 | | - # Add Docker's official GPG key: |
33 | | - sudo apt-get update |
34 | | - sudo apt-get install ca-certificates curl |
35 | | - sudo install -m 0755 -d /etc/apt/keyrings |
36 | | - sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc |
37 | | - sudo chmod a+r /etc/apt/keyrings/docker.asc |
38 | | -
|
39 | | - # Add the repository to Apt sources: |
40 | | - echo \ |
41 | | - "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ |
42 | | - $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ |
43 | | - sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
44 | | - sudo apt-get update |
45 | | -
|
46 | | - # Install Docker |
47 | | - sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin |
48 | | -
|
49 | | - # Give the current user permission to run docker without sudo |
50 | | - sudo usermod -aG docker $USER |
51 | | - sudo apt-get install -y acl |
52 | | - sudo setfacl --modify user:$USER:rw /var/run/docker.sock |
53 | | - - name: Install Ruby |
54 | | - if: ${{ matrix.arch == 'arm64' }} |
55 | | - run: | |
56 | | - sudo apt-get install -y ruby |
57 | 29 | - uses: actions/checkout@v3 |
58 | 30 | with: |
59 | 31 | fetch-depth: 1 |
|
106 | 78 | docker tag discourse/base:release${{ steps.arch-helper.outputs.arch_postfix_dash }} discourse/base:aarch64 |
107 | 79 | docker push discourse/base:aarch64 |
108 | 80 | test: |
109 | | - runs-on: ubuntu-20.04${{ ((github.event_name != 'schedule') && '-8core') || '' }} |
| 81 | + runs-on: ubuntu-22.04${{ ((github.event_name != 'schedule') && '-8core') || '' }} |
110 | 82 | timeout-minutes: 30 |
111 | 83 | needs: base |
112 | 84 | defaults: |
@@ -147,7 +119,7 @@ jobs: |
147 | 119 | docker push discourse/discourse_test:slim-browsers |
148 | 120 | docker push discourse/discourse_test:release |
149 | 121 | dev: |
150 | | - runs-on: ubuntu-20.04${{ ((github.event_name != 'schedule') && '-8core') || '' }} |
| 122 | + runs-on: ubuntu-22.04${{ ((github.event_name != 'schedule') && '-8core') || '' }} |
151 | 123 | timeout-minutes: 30 |
152 | 124 | needs: base |
153 | 125 | steps: |
|
0 commit comments