mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-03-18 01:03:17 +08:00
4
.github/workflows/toolkit.yml
vendored
4
.github/workflows/toolkit.yml
vendored
@@ -20,14 +20,14 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '1.25'
|
||||
go-version-file: ${{ github.workspace }}/go.mod
|
||||
- name: Build
|
||||
run: cd src/go; make linux-amd64; cd ../../
|
||||
|
||||
- name: Build the Docker image
|
||||
run: echo "FROM oraclelinux:9-slim" > Dockerfile; echo "RUN microdnf -y update" >> Dockerfile; echo "COPY bin/* /usr/bin/" >> Dockerfile; docker build . --file Dockerfile --tag percona-toolkit:${{ github.sha }}
|
||||
- name: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@0.34.0
|
||||
uses: aquasecurity/trivy-action@0.35.0
|
||||
with:
|
||||
image-ref: 'percona-toolkit:${{ github.sha }}'
|
||||
format: 'table'
|
||||
|
||||
@@ -170,7 +170,7 @@ install_go() {
|
||||
#rm -rf /usr/local/go /usr/local/go1.8 /usr/local/go1.9
|
||||
#mv go1.9 /usr/local/
|
||||
#ln -s /usr/local/go1.9 /usr/local/go
|
||||
GO_VERSION=1.25.5
|
||||
GO_VERSION=1.25.8
|
||||
if [ x"$ARCH" = "xx86_64" ]; then
|
||||
GO_ARCH="amd64"
|
||||
elif [ x"$ARCH" = "xaarch64" ]; then
|
||||
|
||||
Reference in New Issue
Block a user