Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest golang versions #81

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build and publish docker plugin
env:
REPO: ghcr.io/${{ github.repository }}
VERSION: edge
TAG_NAME: edge
run: |-
make plugin
docker plugin push "$REPO:${TAG_NAME}"
REPO=${{ env.REPO }} VERSION=${{ env.TAG_NAME }} make plugin
docker plugin push "${{ env.REPO }}:${{ env.TAG_NAME }}"
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
- name: Build and publish docker plugin
env:
REPO: ghcr.io/${{ github.repository }}
VERSION: ${{ env.TAG_NAME }}
run: |-
make plugin
docker plugin push "$REPO:${TAG_NAME}"
REPO=${{ env.REPO }} VERSION=${{ env.TAG_NAME }} make plugin
docker plugin push "${{ env.REPO }}:${{ env.TAG_NAME }}"
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.PHONY: all build

VERSION ?= 0.8
GO_VERSION := 1.19.1
GOLANGCI_LINT_VERSION := v1.49.0
REPO := openpolicyagent/opa-docker-authz-v2
GO_VERSION := 1.21.4
GOLANGCI_LINT_VERSION := v1.55.2
REPO ?= openpolicyagent/opa-docker-authz-v2

all: build

Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ echo "Building opa-docker-authz version: $VERSION (OPA version: $OPA_VERSION)"
echo -e "\nBuilding opa-docker-authz ..."
CGO_ENABLED=0 go build -ldflags \
"-X github.com/open-policy-agent/opa-docker-authz/version.Version=$VERSION -X github.com/open-policy-agent/opa-docker-authz/version.OPAVersion=$OPA_VERSION" \
-buildvcs=false \
-o opa-docker-authz

echo -e "\n... done!"