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
58 changes: 58 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: test

on:
workflow_call:

jobs:
test:
name: rspec
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['3.3', '3.4', '4.0']
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: sorah-rbpkg/actions@bcd0417f7e6e66bf85a51bf49f323ad4db3bfb12 # v3.0.1
with:
ruby-version: "${{ matrix.ruby-version }}"
bundler-cache: true
- run: 'bundle exec rspec -fd'

integration-pebble:
name: integration-pebble
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['3.3', '3.4', '4.0']

# FIXME: once GitHub Actions gains support of adding command line arguments to container
# services:
# # https://github.com/letsencrypt/pebble
# pebble:
# image: letsencrypt/pebble
# ports:
# - 14000:14000 # ACME port
# - 15000:15000 # Management port
# options: "pebble -config /test/config/pebble-config.json -strict -dnsserver 127.0.0.1:8053"
#
# challtestsrv:
# image: letsencrypt/pebble-challtestsrv:latest
# ports:
# - 8055:8055 # HTTP Management API
# - 8053:8053/udp # DNS
# - 8053:8053 # DNS
# options: 'pebble-challtestsrv -management :8055 -defaultIPv4 127.0.0.1'

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- uses: sorah-rbpkg/actions@bcd0417f7e6e66bf85a51bf49f323ad4db3bfb12 # v3.0.1
with:
ruby-version: "${{ matrix.ruby-version }}"
bundler-cache: true

- run: 'docker run -d --net=host --rm ghcr.io/letsencrypt/pebble:2.10 -config /test/config/pebble-config.json -strict -dnsserver 127.0.0.1:8053'
- run: 'docker run -d --net=host --rm ghcr.io/letsencrypt/pebble-challtestsrv:2.10 -management :8055 -defaultIPv4 127.0.0.1'
- run: 'bundle exec rspec -fd -t integration_pebble'
113 changes: 0 additions & 113 deletions .github/workflows/build.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: ci
on:
schedule:
- cron: '36 7 2,12,22 * *'
push:
branches: [master, ci-test]

env:
DOCKER_REPO: 'ghcr.io/sorah/acmesmith'

jobs:
test:
uses: ./.github/workflows/_test.yml

docker:
name: docker
needs: [test]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: 'echo $GITHUB_SHA > REVISION'

- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0

- uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
id: meta
with:
images: ${{ env.DOCKER_REPO }}
tags: |
type=sha
type=ref,event=branch
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}

- uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
id: push
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
with:
subject-name: ${{ env.DOCKER_REPO }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
9 changes: 9 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: pr

on:
pull_request:
branches: [master]

jobs:
test:
uses: ./.github/workflows/_test.yml
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
- 'v*'

jobs:
test:
uses: ./.github/workflows/_test.yml

release:
needs: [test]
runs-on: ubuntu-slim
environment:
name: release
Expand Down
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
## [unreleased]

## v2.9.0 (2026-03-14)

### Enhancements

- `acmesmith order` and configuration file gain `profiles` configuration to allow switching ACME profiles such as `shortlived`
- `acmesmith order` and configuration file gain `profiles` configuration to allow switching ACME profiles such as `shortlived` [#81](https://github.com/sorah/acmesmith/pull/81)

```yaml
profiles:
- name: "shortlived"
filter:
subject_name_suffix: [".shortlived.example.invalid"]
```

### Changes

- Prebuilt Docker images are no longer pushed to Dockerhub. Use GHCR instead: [ghcr.io/sorah/acmesmith](https://ghcr.io/sorah/acmesmith)

## v2.8.0 (2025-11-11)

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
acmesmith (2.8.0)
acmesmith (2.9.0)
acme-client (>= 2.0.7, < 3)
aws-sdk-acm
aws-sdk-route53
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ docker run -v /path/to/acmesmith.yml:/app/acmesmith.yml:ro sorah/acmesmith:lates

[`Dockerfile`](./Dockerfile) is available. Default confguration file is at `/app/acmesmith.yml`.

Pre-built docker images are provided at https://hub.docker.com/r/sorah/acmesmith for your convenience
Pre-built docker images are provided at https://ghcr.io/sorah/acmesmith for your convenience
Built with GitHub Actions & [sorah-rbpkg/dockerfiles](https://github.com/sorah-rbpkg/dockerfiles).

## Usage
Expand Down
2 changes: 1 addition & 1 deletion lib/acmesmith/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Acmesmith
VERSION = "2.8.0"
VERSION = "2.9.0"
end