Skip to content
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
45 changes: 19 additions & 26 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26.x'
go-version: stable
cache: false
- name: Build containers
run: go tool mage -v docker:build
Expand All @@ -39,25 +39,24 @@ jobs:
name: Build (Linux)
strategy:
matrix:
version: [1.26.x]
os: [ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- name: Set up cross toolchain
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
cache: false
id: go
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 100
fetch-tags: true
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: stable
cache: false
id: go
- name: Build binary
run: |
go tool mage -compile ./mage-bin
Expand All @@ -78,22 +77,19 @@ jobs:

build-darwin:
name: Build (MacOS)
strategy:
matrix:
version: [1.26.x]
runs-on: macos-latest
steps:
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
cache: false
id: go
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 100
fetch-tags: true
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: stable
cache: false
id: go
- name: Build binary
run: |
go tool mage -compile ./mage-bin
Expand All @@ -120,22 +116,19 @@ jobs:

build-windows:
name: Build (Windows)
strategy:
matrix:
version: [1.26.x]
runs-on: windows-latest
steps:
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
cache: false
id: go
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 100
fetch-tags: true
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: stable
cache: false
id: go
- name: Build binary
run: go tool mage -v go:build
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26.x'
go-version: stable
cache: false
- name: Login to Docker Hub
uses: docker/login-action@v4
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ permissions:
jobs:
golangci:
name: Lint
strategy:
matrix:
version: [1.26.x]
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
go-version: stable
cache: false
- name: golangci-lint
run: go tool mage go:lint
41 changes: 16 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,22 @@ permissions:
jobs:
build-linux:
name: Build (Linux)
strategy:
matrix:
version: [1.26.x]
runs-on: ubuntu-22.04
steps:
- name: Set up cross toolchain
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
go-version: stable
cache: false
id: go
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Build binary
env:
VERSION: ${{ github.ref_name }}
Expand All @@ -53,21 +50,18 @@ jobs:

build-darwin:
name: Build (MacOS)
strategy:
matrix:
version: [1.26.x]
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
go-version: stable
cache: false
id: go
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Build binary
env:
VERSION: ${{ github.ref_name }}
Expand Down Expand Up @@ -114,21 +108,18 @@ jobs:

build-windows:
name: Build (Windows)
strategy:
matrix:
version: [1.26.x]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up toolchain
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
go-version: stable
cache: false
id: go
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Build binary
env:
VERSION: ${{ github.ref_name }}
Expand All @@ -153,7 +144,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.26.x'
go-version: stable
cache: false
- name: Download all artifacts
uses: actions/download-artifact@v8
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ jobs:
name: Tests
strategy:
matrix:
version: [1.26.x]
os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
go-version: stable
cache: false
id: go
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
Expand All @@ -52,7 +51,6 @@ jobs:
name: Tests (PKCS#11/SoftHSM)
strategy:
matrix:
version: [1.26]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -61,10 +59,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.version }}
go-version: stable
cache: false
- name: Run tests in Docker
run: GO_VERSION=${{ matrix.version }} go tool mage -v test:docker
run: go tool mage -v test:docker
- name: Codecov upload
uses: codecov/codecov-action@v6
if: ${{ github.actor != 'dependabot[bot]' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
go-version: stable
cache: false
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# To run ghostunnel from the image (for example):
# docker run --rm ghostunnel/ghostunnel --version

FROM golang:1.26-alpine AS build
FROM golang:alpine AS build

# Dependencies
RUN apk add --no-cache --update gcc musl-dev libtool git
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# To run ghostunnel from the image (for example):
# docker run --rm ghostunnel/ghostunnel --version

FROM golang:1.26-bookworm AS build
FROM golang:bookworm AS build

# Dependencies
RUN apt update && apt install -y gcc libtool git
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-distroless
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# To run ghostunnel from the image (for example):
# docker run --rm ghostunnel/ghostunnel --version

FROM golang:1.26-bookworm AS build
FROM golang:bookworm AS build

# Dependencies
RUN apt update && apt install -y gcc git
Expand Down
10 changes: 4 additions & 6 deletions Dockerfile-test
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Dockerfile for running integration tests, includes PKCS11/SoftHSM setup.
#
# Dockerfile for running integration tests, includes PKCS11/SoftHSM setup.
#
# Build image:
# docker buildx build --build-arg GO_VERSION=[VERSION] -t ghostunnel/ghostunnel-test -f Dockerfile-test .
# docker buildx build -t ghostunnel/ghostunnel-test -f Dockerfile-test .
#
# Run integration tests:
# docker run -v /dev/log:/dev/log -v $PWD:/go/src/github.com/ghostunnel/ghostunnel ghostunnel/ghostunnel-test

ARG GO_VERSION="1.26"

FROM golang:${GO_VERSION}
FROM golang:latest

# Install build dependencies
RUN apt-get update && \
Expand Down
Loading