Skip to content

Commit be5e0a6

Browse files
authored
chore: update go version (#284)
* chore: update go version --------- Co-authored-by: AlinsRan <[email protected]>
1 parent fd48843 commit be5e0a6

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/package-apisix-dashboard-rpm-el7.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
jobs:
1818
build:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-20.04
2020
timeout-minutes: 60
2121
env:
2222
DASHBOARD_VERSION: "3.0.0"
@@ -100,7 +100,7 @@ jobs:
100100
retention-days: 5
101101
if-no-files-found: error
102102
test:
103-
runs-on: ubuntu-latest
103+
runs-on: ubuntu-20.04
104104
needs: build
105105
env:
106106
DASHBOARD_VERSION: "3.0.0"
@@ -116,10 +116,8 @@ jobs:
116116
steps:
117117
- name: Install podman
118118
run: |
119-
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/testing/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:testing.list
120-
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:testing/xUbuntu_20.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_kubic_libcontainers_testing.gpg > /dev/null
121119
sudo apt update
122-
sudo apt install podman
120+
sudo apt -y install podman
123121
124122
- name: Download artifact
125123
uses: actions/download-artifact@v2

utils/install-common.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,13 @@ install_apisix() {
122122
}
123123

124124
install_golang() {
125+
GO_VERSION="1.19.6"
125126
GO_ARCH="amd64"
126127
if [[ $ARCH == "arm64" ]] || [[ $ARCH == "aarch64" ]]; then
127128
GO_ARCH="arm64"
128129
fi
129-
wget https://dl.google.com/go/go1.16.linux-"${GO_ARCH}".tar.gz
130-
tar -xzf go1.16.linux-"${GO_ARCH}".tar.gz
130+
wget https://dl.google.com/go/go"${GO_VERSION}".linux-"${GO_ARCH}".tar.gz
131+
tar -xzf go"${GO_VERSION}".linux-"${GO_ARCH}".tar.gz
131132
mv go /usr/local
132133
}
133134

0 commit comments

Comments
 (0)