Skip to content

Commit

Permalink
Merge branch 'master' of github-ls:LennardSchwarz/traefik-forward-aut…
Browse files Browse the repository at this point in the history
…h into allow-401-escape-option
  • Loading branch information
Lennard Schwarz committed Sep 13, 2024
2 parents f6e61ba + ea03614 commit f7f2c67
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 74 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Push to ghcr.io

on:
workflow_dispatch:
inputs:
tag:
description: "Tag to use for the Docker images"
required: true

jobs:
build_and_push:
name: Build and push Docker images
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push Docker images for multiple architectures
run: |
export "REPO=${GITHUB_REPOSITORY@L}"
echo "Using tag name: $REPO"
export TAG=$(echo "${{ github.event.inputs.tag }}")
echo "Using tag: $TAG"
docker buildx build --platform linux/amd64 -t ghcr.io/$REPO:$TAG -f Dockerfile --push .
docker buildx build --platform linux/arm/v7 -t ghcr.io/$REPO:$TAG-arm -f Dockerfile.arm --push .
docker buildx build --platform linux/arm64 -t ghcr.io/$REPO:$TAG-arm64 -f Dockerfile.arm64 --push .
71 changes: 0 additions & 71 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20-alpine as builder
FROM golang:1.22-alpine as builder

# Setup
RUN mkdir -p /go/src/github.com/thomseddon/traefik-forward-auth
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.arm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.13-alpine as builder
FROM golang:1.22-alpine as builder

# Setup
RUN mkdir -p /go/src/github.com/thomseddon/traefik-forward-auth
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.13-alpine as builder
FROM golang:1.22-alpine as builder

# Setup
RUN mkdir -p /go/src/github.com/thomseddon/traefik-forward-auth
Expand Down

0 comments on commit f7f2c67

Please sign in to comment.