Skip to content

Commit

Permalink
Use latest golang version (#81)
Browse files Browse the repository at this point in the history
Use latest golang version

Signed-off-by: Lars Haugan <lars.haugan@sparebank1.no>
  • Loading branch information
larhauga committed Nov 20, 2023
1 parent aac1037 commit 6d0e11a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
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!"

0 comments on commit 6d0e11a

Please sign in to comment.