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

1.2.0 Build for arm64 platforms #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
32 changes: 31 additions & 1 deletion .github/workflows/build-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ jobs:
asset_path: ./pam-keycloak-oidc.linux-amd64
asset_name: pam-keycloak-oidc.linux-amd64
asset_content_type: application/octet-stream
-
name: Upload Release Asset (Linux arm64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./pam-keycloak-oidc.linux-arm64
asset_name: pam-keycloak-oidc.linux-arm64
asset_content_type: application/octet-stream
-
name: Upload Release Asset (macOS amd64)
uses: actions/upload-release-asset@v1
Expand All @@ -66,6 +76,16 @@ jobs:
asset_path: ./pam-keycloak-oidc.darwin-amd64
asset_name: pam-keycloak-oidc.macOS-intel
asset_content_type: application/octet-stream
-
name: Upload Release Asset (macOS arm64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./pam-keycloak-oidc.darwin-arm64
asset_name: pam-keycloak-oidc.macOS-arm64
asset_content_type: application/octet-stream
-
name: Upload Release Asset (Windows amd64)
uses: actions/upload-release-asset@v1
Expand All @@ -74,5 +94,15 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./pam-keycloak-oidc.windows-amd64.exe
asset_name: pam-keycloak-oidc.exe
asset_name: pam-keycloak-oidc-amd64.exe
asset_content_type: application/octet-stream
-
name: Upload Release Asset (Windows arm64)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./pam-keycloak-oidc.windows-arm64.exe
asset_name: pam-keycloak-oidc-arm64.exe
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion .scmi-bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.1.6
current_version = 1.2.0
commit = True
tag = False

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ K := $(foreach exec,$(EXECUTABLES),\
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

BINARY=pam-keycloak-oidc
VERSION=1.1.6
VERSION=1.2.0
BUILD=`git rev-parse HEAD`
PLATFORMS=darwin linux windows
ARCHITECTURES=amd64
ARCHITECTURES=amd64 arm64

# Setup linker flags option for build that inter-operate with variable names in src code
LDFLAGS=-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD}"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pam-keycloak-oidc

**Current version: 1.1.6**
**Current version: 1.2.0**

PAM module connecting to [Keycloak](https://www.keycloak.org/) for user authentication using OpenID Connect protocol,
MFA (Multi-Factor Authentication) or TOTP (Time-based One-time Password) is supported.
Expand Down Expand Up @@ -53,7 +53,7 @@ In theory, it should work with any identity provider which supports OpenID Conne
then make the relevant users join that group. Refer to Keycloak documents for the HOWTO.

5. Download the precompiled binary from Github, e.g. as `/opt/pam-keycloak-oidc/pam-keycloak-oidc`. In case the
system is not amd64, compile this golang application for the appropriate architecture.
system is not amd64 or arm64, compile this golang application for the appropriate architecture.

6. ```shell
chmod +x /opt/pam-keycloak-oidc/pam-keycloak-oidc
Expand Down