Skip to content

Commit

Permalink
Merge pull request #89 from mesosphere/mh/add-release-job
Browse files Browse the repository at this point in the history
feat: add release job
  • Loading branch information
mhrabovcin authored Aug 21, 2024
2 parents 1927a0f + 5786c89 commit 1c624a6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1c624a6

Please sign in to comment.