Skip to content

Commit c38082f

Browse files
Merge pull request #7 from GeorgeDavis-Ibexlabs/github-ci
Build GitHub CI
2 parents 11d5c06 + 83866b0 commit c38082f

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# GitHub recommends pinning actions to a commit SHA.
7+
# To get a newer version, you will need to update the SHA.
8+
# You can also reference a tag or branch, but the action may change without warning.
9+
10+
name: Publish Docker image
11+
12+
on:
13+
# Triggers the workflow on push or pull request events but only for the "main" branch
14+
push:
15+
branches: [ "main", "github-ci" ]
16+
pull_request:
17+
branches: [ "main", "github-ci" ]
18+
19+
jobs:
20+
push_to_registry:
21+
name: Push Docker image to Docker Hub
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Check out the repo
25+
uses: actions/checkout@v4.1.1
26+
27+
- name: Log in to Docker Hub
28+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Extract metadata (tags, labels) for Docker
34+
id: meta
35+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
36+
with:
37+
images: georgedavisibexlabs/publish-sarif-to-jira
38+
39+
- name: Build and push Docker image
40+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
41+
with:
42+
context: .
43+
file: ./Dockerfile
44+
push: true
45+
tags: ${{ steps.meta.outputs.tags }}
46+
labels: ${{ steps.meta.outputs.labels }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# jira-cloud-ticket-automation
1+
# publish-sarif-to-jira
22

33
Python project to push SARIF output to JIRA Cloud and track progress of personal projects in JIRA
44

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup, find_packages
22

33
setup(
4-
name='jira-cloud-ticket-automation',
4+
name='publish-sarif-to-jira',
55
version='0.0.1',
66
packages=find_packages(),
77
install_requires=[

0 commit comments

Comments
 (0)