Skip to content

Commit

Permalink
Support for Faktory v1.8.0 (#31)
Browse files Browse the repository at this point in the history
* Bump Faktory and Go versions

* Build multi-arch binaries and Docker images

* Add ctx to uniq

* Add ctx to batch; Upgrade to go-redis v9

* Add ctx to cron

* Add ctx to expire

* Add ctx to requeue

* Add ctx to metrics

* Bump go version in CI

* Clean up warnings in tests

* Leak fewer redis-server resources

* Skip flakey batching tests
  • Loading branch information
lackstein authored Jan 12, 2024
1 parent c1bd539 commit 801a969
Show file tree
Hide file tree
Showing 28 changed files with 544 additions and 456 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.19.x
go-version: 1.21.x

- name: Login to GitHub Container Registry
uses: docker/#-action@v1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ jobs:
test:
strategy:
matrix:
go-version: [1.19.x]
go-version: [1.21.x]
os: [ubuntu-latest, macos-latest]
fail-fast: false

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -38,7 +39,7 @@ jobs:
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
Expand Down
27 changes: 20 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ builds:
goos:
- linux
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
goarch:
- amd64
- arm64
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -28,4 +25,20 @@ changelog:
- '^test:'
dockers:
- image_templates:
- quay.io/fossa/faktory:{{ .Tag }}
- quay.io/fossa/faktory:{{ .Tag }}-amd64
use: buildx
build_flag_templates:
- '--pull'
- '--platform=linux/amd64'
- image_templates:
- quay.io/fossa/faktory:{{ .Tag }}-arm64
use: buildx
build_flag_templates:
- '--pull'
- '--platform=linux/arm64'
goarch: arm64
docker_manifests:
- name_template: quay.io/fossa/faktory:{{ .Tag }}
image_templates:
- quay.io/fossa/faktory:{{ .Tag }}-amd64
- quay.io/fossa/faktory:{{ .Tag }}-arm64
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.16
FROM alpine:3.17

RUN apk add --no-cache redis ca-certificates socat
RUN addgroup -S faktory && \
Expand Down
Loading

0 comments on commit 801a969

Please # to comment.