Skip to content

Commit ffac1f6

Browse files
authored
Merge pull request #54 from logchange/migrate-to-logchange-org
change docker actions and adjust to release version 1.0.0
2 parents 8bf3ea3 + 05054e3 commit ffac1f6

File tree

2 files changed

+38
-40
lines changed

2 files changed

+38
-40
lines changed
Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,47 @@
1-
name: Docker
1+
name: Publish Docker image
22

33
on:
44
release:
55
types: [published]
66

7-
env:
8-
REGISTRY: docker.io
9-
IMAGE_NAME: ${{ github.repository }}
10-
11-
127
jobs:
13-
build:
14-
8+
push_to_registry:
9+
name: Push Docker image to Docker Hub
1510
runs-on: ubuntu-latest
16-
permissions:
17-
contents: read
18-
packages: write
19-
# This is used to complete the identity challenge
20-
# with sigstore/fulcio when running outside of PRs.
21-
id-token: write
22-
2311
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v3
26-
27-
# Extract metadata (tags, labels) for Docker
28-
# https://github.com/docker/metadata-action
29-
- name: Extract Docker metadata
30-
id: meta
31-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
32-
with:
33-
images: ${{ env.REGISTRY }}/angrymeir/secscanner2junit
34-
tags: |
35-
type=semver,pattern={{version}}
36-
3712
- name: Sleep for 180 seconds # so that the package has been published to PyPI in the meantime
3813
run: sleep 180
3914
shell: bash
4015

41-
- name: Kaniko build
42-
uses: aevea/[email protected]
16+
- name: Check out the repo
17+
uses: actions/checkout@v4
18+
19+
- name: Log in to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Extract metadata (tags, labels) for Docker
26+
id: meta
27+
uses: docker/metadata-action@v5
28+
with:
29+
images: logchange/secscanner2junit
30+
31+
- name: Build and push Docker image
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: .
35+
file: ./Dockerfile
36+
push: true
37+
tags: ${{ steps.meta.outputs.tags }}
38+
labels: ${{ steps.meta.outputs.labels }}
39+
build-args: |
40+
VERSION=${{ github.ref_name }}
41+
42+
- name: Docker Hub Description
43+
uses: peter-evans/dockerhub-description@v3
4344
with:
44-
image: ${{ env.REGISTRY }}/angrymeir/secscanner2junit
45-
username: ${{ secrets.DOCKERHUB_USERNAME }}
46-
password: ${{ secrets.DOCKERHUB_TOKEN }}
47-
tag: ${{ github.ref_name }}
48-
tag_with_latest: true
49-
extra_args: --build-arg=VERSION=${{ github.ref_name }}
45+
username: ${{ secrets.DOCKER_USERNAME }}
46+
password: ${{ secrets.DOCKER_PASSWORD }}
47+
repository: logchange/secscanner2junit

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[tool.poetry]
22
name = "secscanner2junit"
3-
version = "0.1.18"
3+
version = "1.0.0"
44
description = "Convert Security Scanner Output to JUnit Format"
5-
authors = ["Florian Angermeir <[email protected]>"]
5+
authors = ["logchange team <[email protected]", "Florian Angermeir <[email protected]>"]
66
license = "GPL-3.0-only"
77
readme = "README.md"
8-
homepage = "https://github.com/angrymeir/SecScanner2JUnit"
9-
repository = "https://github.com/angrymeir/SecScanner2JUnit"
8+
homepage = "https://github.com/logchange/SecScanner2JUnit"
9+
repository = "https://github.com/logchange/SecScanner2JUnit"
1010
packages = [
1111
{ include = 'secscanner2junit' },
1212
]

0 commit comments

Comments
 (0)