Skip to content

Commit

Permalink
feat: add release job
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrabovcin committed Aug 21, 2024
1 parent 7bc3731 commit 5786c89
Showing 1 changed file with 40 additions and 0 deletions.
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 }}

0 comments on commit 5786c89

Please sign in to comment.