From 7bc373124b7a86add34079006d8851bcbdca3281 Mon Sep 17 00:00:00 2001 From: Martin Hrabovcin Date: Wed, 21 Aug 2024 13:48:50 +0000 Subject: [PATCH 1/2] fix: use golang 1.23 in builder --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 287c8eb..82b6376 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.14-alpine as builder +FROM golang:1.23-alpine as builder # Setup RUN mkdir -p /go/src/github.com/mesosphere/traefik-forward-auth From 5786c896f04ddcdb1aee67460cbe87e2493bd8ce Mon Sep 17 00:00:00 2001 From: Martin Hrabovcin Date: Wed, 21 Aug 2024 14:16:18 +0000 Subject: [PATCH 2/2] feat: add release job --- .github/workflows/release.yaml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..8af5ecf --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,40 @@ +name: release + +on: + push: + tags: + - "*" + workflow_dispatch: {} + +jobs: + build: + name: Release + + runs-on: + - self-hosted-nutanix-dind-large + + steps: + - uses: actions/checkout@v4 + + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Setup buildkit + uses: docker/setup-buildx-action@v3 + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: mesosphere/traefik-forward-auth + + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}