Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fabiolb/fabio
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.2
Choose a base ref
...
head repository: fabiolb/fabio
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 463 changed files with 31,910 additions and 12,907 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fabio
dist/
Empty file added .github/ISSUE_TEMPLATE.md
Empty file.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push, pull_request]
name: Build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Set Hosts
run: |
echo "127.0.0.1 example.com example2.com" | sudo tee -a /etc/hosts
- name: Test
run: |
export PATH=$PATH:$HOME/bin:$HOME/go/bin
make github
24 changes: 24 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: github pages

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build
run: |
export PATH=${PATH}:${HOME}/bin
make github-pages
- name: deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public
cname: fabiolb.net
44 changes: 44 additions & 0 deletions .github/workflows/go-releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
cache: true
- name: Docker Login
uses: docker/login-action@v3
with:
registry: https://index.docker.io/v1/
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
34 changes: 22 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
fabio
fabio.sublime-*
*.pprof
*.test
*.pem
*.p12
.DS_Store
*-amd64
*.orig
*.out
*.p12
build/fabio-*
*.un~
*.pem
*.pprof
*.sha256
*.swp
*.tar.gz
*.test
*.un~
*.zip
.DS_Store
.idea
.vagrant
*-amd64
.vagrant
*.sha256
build/builds/
fabio
fabio.exe
fabio.sublime-*
demo/cert/
/pkg/
dist/
*.app
*.hugo_build.lock
*~
.RELEASE.CHANGELOG.md
79 changes: 79 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
version: 2
builds:
- binary: fabio
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- freebsd
- netbsd
- openbsd
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 7
archives:
- id: bin
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}'
format: binary
source:
enabled: true
name_template: '{{ .ProjectName }}-{{.Version }}.src'
prefix_template: '{{ .ProjectName }}-{{.Version }}/'
checksum:
name_template: '{{.ProjectName}}-{{.Version}}.sha256'
signs:
- artifacts: checksum
args:
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
dockers:
- dockerfile: Dockerfile-goreleaser
use: buildx
goos: linux
goarch: amd64
image_templates:
- 'fabiolb/fabio:latest-amd64'
- 'fabiolb/fabio:{{ .Version }}-amd64'
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- fabio.properties
- dockerfile: Dockerfile-goreleaser
use: buildx
goos: linux
goarch: arm64
image_templates:
- 'fabiolb/fabio:latest-arm64v8'
- 'fabiolb/fabio:{{ .Version }}-arm64v8'
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- fabio.properties
docker_manifests:
- name_template: 'fabiolb/fabio:latest'
image_templates:
- 'fabiolb/fabio:latest-amd64'
- 'fabiolb/fabio:latest-arm64v8'
- name_template: 'fabiolb/fabio:{{ .Version }}'
image_templates:
- 'fabiolb/fabio:{{ .Version }}-amd64'
- 'fabiolb/fabio:{{ .Version }}-arm64v8'
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

Loading