mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
ci: download the proper opa binary
This commit is contained in:
parent
90af23432c
commit
6cda829ed8
1 changed files with 2 additions and 1 deletions
3
.github/workflows/test.yaml
vendored
3
.github/workflows/test.yaml
vendored
|
@ -33,8 +33,9 @@ jobs:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
- name: Install OPA
|
- name: Install OPA
|
||||||
run: |
|
run: |
|
||||||
|
OS=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
sudo curl -L -o opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64
|
sudo curl -L -o opa https://openpolicyagent.org/downloads/latest/opa_${OS}_amd64
|
||||||
sudo chmod +x ./opa
|
sudo chmod +x ./opa
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Add table
Reference in a new issue