Skip to content

Commit

Permalink
Release on tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Zavhorodnii committed Nov 5, 2024
1 parent be690c1 commit 537c1a8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Docker image to Docker Hub

on:
push:
tags:
- "*"

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Build Docker image
run: |
docker build -t threagile/threagile:${{ github.ref_name }} -f Dockerfile .
- name: Push Docker image
run: |
docker push threagile/threagile:${{ github.ref_name }}

0 comments on commit 537c1a8

Please sign in to comment.