Skip to content

Commit 7254f7d

Browse files
authored
DEV: Fix workflow formatting (#623)
and update actions/checkout version
1 parent 1462734 commit 7254f7d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ on:
44
- main
55
pull_request:
66
schedule:
7-
- cron: '0 0 * * *'
7+
- cron: '0 0 * * *'
88

99
jobs:
1010
base:
11-
runs-on: [ubuntu-20.04]
11+
runs-on: ubuntu-20.04
1212
steps:
1313
- name: enable experimental docker features
1414
run: |
1515
sudo bash -c 'echo "{ \"cgroup-parent\": \"/actions_job\",\"experimental\":true}" > /etc/docker/daemon.json'
1616
sudo service docker restart
1717
docker version -f '{{.Server.Experimental}}'
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 1
2121
- name: build slim image
@@ -54,13 +54,13 @@ jobs:
5454
docker push discourse/base:2.0.$TAG
5555
docker push discourse/base:release
5656
test:
57-
runs-on: [ubuntu-20.04]
57+
runs-on: ubuntu-20.04
5858
needs: base
5959
defaults:
6060
run:
61-
working-directory: image/discourse_test
61+
working-directory: image/discourse_test
6262
steps:
63-
- uses: actions/checkout@v2
63+
- uses: actions/checkout@v3
6464
with:
6565
fetch-depth: 1
6666
- name: build discourse_test:slim
@@ -94,10 +94,10 @@ jobs:
9494
docker push discourse/discourse_test:slim-browsers
9595
docker push discourse/discourse_test:release
9696
dev:
97-
runs-on: [ubuntu-20.04]
97+
runs-on: ubuntu-20.04
9898
needs: base
9999
steps:
100-
- uses: actions/checkout@v2
100+
- uses: actions/checkout@v3
101101
with:
102102
fetch-depth: 1
103103
- name: build discourse_dev image
@@ -112,15 +112,15 @@ jobs:
112112
docker login --username discoursebuild --password $DOCKERHUB_PASSWORD
113113
docker push discourse/discourse_dev:release
114114
aarch64:
115-
runs-on: [ubuntu-20.04]
115+
runs-on: ubuntu-20.04
116116
needs: base
117117
services:
118118
registry:
119119
image: registry
120120
ports:
121121
- 5000:5000
122122
steps:
123-
- uses: actions/checkout@v2
123+
- uses: actions/checkout@v3
124124
with:
125125
fetch-depth: 1
126126
- name: Set up QEMU
@@ -136,7 +136,7 @@ jobs:
136136
--platform linux/arm64 \
137137
--tag discourse/base:aarch64-slim
138138
docker tag discourse/base:aarch64-slim localhost:5000/discourse/base:aarch64-slim
139-
docker push localhost:5000/discourse/base:aarch64-slim
139+
docker push localhost:5000/discourse/base:aarch64-slim
140140
- name: build release image
141141
working-directory: image/base
142142
run: |

0 commit comments

Comments
 (0)