Skip to content

Commit 0c35332

Browse files
committed
Use setup-qemu-action
1 parent fa520b2 commit 0c35332

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/publish-go-tester-task.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,8 @@ jobs:
122122
repo-token: ${{ secrets.GITHUB_TOKEN }}
123123
version: 3.x
124124

125-
- name: Install Latest Docker and QEMU
126-
run: |
127-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
128-
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
129-
sudo apt-get update
130-
sudo apt-get install docker-ce
131-
sudo apt-get install qemu-user-static
132-
docker --version
125+
- name: Setup QEMU
126+
uses: docker/setup-qemu-action@v3
133127

134128
- name: Build
135129
run: |

.github/workflows/release-go-task.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,8 @@ jobs:
6666
repo-token: ${{ secrets.GITHUB_TOKEN }}
6767
version: 3.x
6868

69-
- name: Install Latest Docker and QEMU
70-
run: |
71-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
72-
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
73-
sudo apt-get update
74-
sudo apt-get install docker-ce
75-
sudo apt-get install qemu-user-static
76-
docker --version
69+
- name: Setup QEMU
70+
uses: docker/setup-qemu-action@v3
7771

7872
- name: Build
7973
run: task dist:${{ matrix.os.task }}

0 commit comments

Comments
 (0)