Skip to content

Commit

Permalink
github-util: Update FROM version (#520)
Browse files Browse the repository at this point in the history
* #1 Update version

* Update to template
  • Loading branch information
docktermj authored Sep 30, 2023
1 parent cbbcbc8 commit 3bac0ef
Show file tree
Hide file tree
Showing 13 changed files with 123 additions and 55 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/add-dependabot-request-to-project-t-comm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,26 @@
# - https://github.com/srggrs/assign-one-project-github-action

name: add-dependabot-request-to-project-t-comm.yaml

on:
pull_request:
types:
- opened
- reopened

env:
GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}
CREATOR: ${{ github.event.pull_request.user.login }}

jobs:
assign_one_project:
add-dependabot-request-to-project:
name: Add dependabot pull request to Senzing Community project
runs-on: ubuntu-latest
steps:
- name: Assign pull request to project
env:
- name: Assign pull request to project
env:
BOOL: ${{ contains( env.CREATOR, 'dependabot' ) }}
uses: Senzing/github-action-add-issue-to-project@main
if: ${{ env.BOOL == 'true' }}
with:
project: 'https://github.com/orgs/Senzing/projects/2'
uses: Senzing/github-action-add-issue-to-project@main
if: ${{ env.BOOL == 'true' }}
with:
project: "https://github.com/orgs/Senzing/projects/2"
15 changes: 9 additions & 6 deletions .github/workflows/add-issue-to-project-t-comm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@
# - https://github.com/srggrs/assign-one-project-github-action

name: add-issue-to-project-t-comm.yaml

on:
issues:
types:
- reopened
- opened

env:
GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}

jobs:
assign_one_project:
add-issue-to-project:
name: Add issue to Senzing Community project
runs-on: ubuntu-latest
steps:
- name: Assign issue to project
uses: Senzing/github-action-add-issue-to-project@main
with:
project: 'https://github.com/orgs/Senzing/projects/2'
column_name: 'Backlog'
- name: Assign issue to project
uses: Senzing/github-action-add-issue-to-project@main
with:
project: "https://github.com/orgs/Senzing/projects/2"
column_name: "Backlog"
4 changes: 3 additions & 1 deletion .github/workflows/add-triage-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
# - https://github.com/andymckay/labeler

name: add-triage-label.yaml

on:
issues:
types:
- reopened
- opened

jobs:
automate-issues-labels:
add-triage-label:
name: Add triage label to issue
runs-on: ubuntu-latest
steps:
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/build-docker-container.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/dependabot-approve-and-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: dependabot-approve-and-merge.yaml

on:
pull_request:
branches: [main]

jobs:
dependabot-approve-and-merge:
permissions:
contents: write
pull-requests: write
uses: Senzing/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@main
secrets:
SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/docker-build-container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: docker-build-container.yaml

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
docker-build-container:
runs-on: ubuntu-latest
steps:
- name: Build docker image
uses: Senzing/github-action-docker-buildx-build@latest
with:
image-repository: senzing/stream-producer
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
19 changes: 19 additions & 0 deletions .github/workflows/docker-push-containers-to-dockerhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: docker-push-containers-to-dockerhub.yaml

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

jobs:
docker-push-containers-to-dockerhub:
runs-on: ubuntu-latest
steps:
- name: Build docker image and push to DockerHub
uses: Senzing/github-action-docker-buildx-build@latest
with:
build-options: "--push"
image-repository: senzing/stream-producer
image-tag: ${{ github.ref_name }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
5 changes: 4 additions & 1 deletion .github/workflows/identify-customer.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: identify-customer.yaml

on:
issues:
types:
- opened

env:
GITHUB_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
MEMBER_LIST: ${{ secrets.SENZING_MEMBERS }}
CREATOR: ${{ github.actor }}

jobs:
automate-issues-labels:
identify-customer:
name: Add customer-submission label
runs-on: ubuntu-latest
steps:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/move-pr-to-done.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: move-pr-to-done.yaml

on:
pull_request:
types: [closed]

jobs:
move-pr-to-done:
uses: Senzing/build-resources/.github/workflows/move-pr-to-done.yaml@main
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
26 changes: 13 additions & 13 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ name: pylint.yaml
on: [push]

jobs:
build:
pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

-

## [1.6.7] - 2023-06-15
## [1.8.8] - 2023-09-29

### Changed in 1.8.8

- In `Dockerfile`, updated FROM instruction to `debian:11.7-slim@sha256:c618be84fc82aa8ba203abbb07218410b0f5b3c7cb6b4e7248fda7785d4f9946`
- In `requirements.txt`, updated:
- azure-servicebus==7.11.2
- boto3==1.28.56
- confluent-kafka==2.2.0
- fastavro==1.8.3
- fastparquet==2023.8.0
- pandas==2.1.1
- pyarrow==13.0.0

## [1.8.7] - 2023-06-15

### Changed in 1.8.7

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG BASE_IMAGE=debian:11.7-slim@sha256:924df86f8aad741a0134b2de7d8e70c5c6863f839caadef62609c1be1340daf5
ARG BASE_IMAGE=debian:11.7-slim@sha256:c618be84fc82aa8ba203abbb07218410b0f5b3c7cb6b4e7248fda7785d4f9946
FROM ${BASE_IMAGE}

ENV REFRESHED_AT=2023-06-15
ENV REFRESHED_AT=2023-09-29

LABEL Name="senzing/stream-producer" \
Maintainer="[email protected]" \
Version="1.8.7"
Version="1.8.8"

HEALTHCHECK CMD ["/app/healthcheck.sh"]

Expand Down
4 changes: 2 additions & 2 deletions stream-producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
# Metadata.

__all__ = []
__version__ = "1.8.7" # See https://www.python.org/dev/peps/pep-0396/
__version__ = "1.8.8" # See https://www.python.org/dev/peps/pep-0396/
__date__ = '2020-07-07'
__updated__ = '2023-06-15'
__updated__ = '2023-09-29'

# See https://github.com/Senzing/knowledge-base/blob/main/lists/senzing-product-ids.md
SENZING_PRODUCT_ID = "5014"
Expand Down

0 comments on commit 3bac0ef

Please sign in to comment.