Skip to content

Commit

Permalink
Merge pull request #46 from sanjay-ba/main
Browse files Browse the repository at this point in the history
added github ation to Publish versioned image
  • Loading branch information
rksharma95 authored Nov 18, 2024
2 parents 9cacae2 + 7b5d14c commit 738668d
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Docker release Image CI

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-*"
- "v*"

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_AUTHTOK }}

- name: Extract Tag Name
id: extract_tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Build and push release
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: kubearmor/k8tls:${{env.RELEASE_TAG }}


0 comments on commit 738668d

Please sign in to comment.