mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-16 16:23:30 +00:00
Compare commits
2 Commits
dependabot
...
fix-go-ci
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a88b99e9c8 | ||
![]() |
dd84dbb59e |
7
.github/workflows/toolkit.yml
vendored
7
.github/workflows/toolkit.yml
vendored
@@ -15,14 +15,17 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: '1.22'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd src/go; make linux-amd64; cd ../../
|
working-directory: src/go
|
||||||
|
run: make linux-amd64
|
||||||
|
|
||||||
- name: Build the Docker image
|
- 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 }}
|
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 }}
|
||||||
|
@@ -22,7 +22,7 @@ func encryptorCmd(opts *cliOptions) (err error) {
|
|||||||
*opts.DecryptOutFile = strings.TrimSuffix(filepath.Base(*opts.DecryptInFile), ".aes")
|
*opts.DecryptOutFile = strings.TrimSuffix(filepath.Base(*opts.DecryptInFile), ".aes")
|
||||||
}
|
}
|
||||||
log.Infof("Decrypting file %q into %q", *opts.DecryptInFile, *opts.DecryptOutFile)
|
log.Infof("Decrypting file %q into %q", *opts.DecryptInFile, *opts.DecryptOutFile)
|
||||||
err = decrypt(*opts.DecryptInFile, *opts.DecryptOutFile, password)
|
err = decrypt(*opts.DecryptInFile, *opts.DecryptOutFile, password
|
||||||
case "encrypt":
|
case "encrypt":
|
||||||
if *opts.EncryptOutFile == "" {
|
if *opts.EncryptOutFile == "" {
|
||||||
*opts.EncryptOutFile = filepath.Base(*opts.EncryptInFile) + ".aes"
|
*opts.EncryptOutFile = filepath.Base(*opts.EncryptInFile) + ".aes"
|
||||||
|
Reference in New Issue
Block a user