Skip to content

Commit

Permalink
feat: traefik 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Nov 1, 2024
1 parent 1b315d0 commit bd5c1c7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/traefik3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build traefik3 with OpenSSL

on:
push:
branches:
- **
workflow_dispatch:

permissions:
contents: read

jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
pull-requests: write
security-events: write
id-token: write
attestations: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Get image version
id: getversion
run: echo "version=$(head -n 1 traefik3/Dockerfile | sed -r -e 's/^([^:]+):([^ @$-]+).*/\2/')" >> "${GITHUB_OUTPUT}"

- name: Build and push image
uses: ./.github/actions/build-docker-image
with:
context: traefik3
push: ${{ github.base_ref == null }}
cache-from: type=gha,scope=traefik3
cache-to: type=gha,mode=max,scope=traefik3
no-cache: ${{ github.event_name == 'workflow_dispatch' }}
primaryTag: ghcr.io/automattic/vip-container-images/traefik3_openssl:${{ steps.getversion.outputs.version }}
tags: ghcr.io/automattic/vip-container-images/traefik3_openssl:latest
3 changes: 3 additions & 0 deletions traefik3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM traefik:v3.2.0@sha256:66e37237b371f2b25ce5f247cc371976929dcb18c041e05685f1de1df6422b72

RUN apk upgrade --no-cache && apk add --no-cache openssl

0 comments on commit bd5c1c7

Please sign in to comment.