Skip to content

Commit

Permalink
Merge pull request #2 from Senzing/1.dockter.1
Browse files Browse the repository at this point in the history
1.dockter.1
  • Loading branch information
docktermj authored Aug 2, 2023
2 parents 0c1a5d9 + d8c0f32 commit 4088f88
Show file tree
Hide file tree
Showing 57 changed files with 2,305 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.github/
docs/
.DS_Store
.gitignore
.project
.pydevproject
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
docker-compose.test.yml
LICENSE
PULL_REQUEST_TEMPLATE.md
README.md
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Default code owner

* @Senzing/go-developers
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Documentation request
about: Identify an area for improvement in documentation

---

**What is the URL of the documentation?**

- **Example:** https://github.com/Senzing/template-docker#external-database
- *Note:* This URL includes the web page and the section of the documentation.

**What can be improved?**

A clear and concise description of what can be improved.
Examples:

- "I don't understand where the ${XYZ} variable is set."
- "There seems to be a step missing between 'X' and 'Z'. I don't know how to get to 'Z'."
- "When I run `command sub-command ...` I get the following error:"
- "I don't know what is meant by 'gerble barb gazoink` in the instructions".

**Additional context**

Add any other context or screenshots to help describe the documentation improvement.
If you think the documentation improvement is operating system specific,
please indicate which operating system is being used.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
Binary file not shown.
Binary file not shown.
24 changes: 24 additions & 0 deletions .github/workflows/add-dependabot-request-to-project-t-comm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Based on
# - 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:
name: Add dependabot pull request to Senzing Community project
runs-on: ubuntu-latest
steps:
- 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"
21 changes: 21 additions & 0 deletions .github/workflows/add-issue-to-project-t-comm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Based on
# - 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:
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"
19 changes: 19 additions & 0 deletions .github/workflows/add-triage-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Based on
# - https://docs.github.com/en/actions/guides/adding-labels-to-issues
# - https://github.com/andymckay/labeler

name: add-triage-label.yaml
on:
issues:
types:
- reopened
- opened
jobs:
automate-issues-labels:
name: Add triage label to issue
runs-on: ubuntu-latest
steps:
- name: initial labeling
uses: andymckay/labeler@1.0.4
with:
add-labels: "triage"
27 changes: 27 additions & 0 deletions .github/workflows/build-docker-container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build-docker-container.yaml
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
buildDockerContainer:
name: Build Docker container
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: git config
run: |
git config user.name github-actions
git config user.email support@senzing.com
- name: Print environment variables
run: printenv
- name: Git Merge With Main
run: git merge origin/main
- name: Git Update submodules
run: git submodule update --init --recursive
- name: Build Docker container
run: make docker-build
16 changes: 16 additions & 0 deletions .github/workflows/dependabot-automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---

name: 'dependabot automation'

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 }}
22 changes: 22 additions & 0 deletions .github/workflows/go-proxy-pull.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Based on
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# - https://github.com/marketplace/actions/go-proxy-warming
# - https://github.com/andrewslotin/go-proxy-pull-action
# - https://futurestud.io/tutorials/github-actions-run-a-workflow-when-creating-a-tag

name: go-proxy-pull.yaml

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

jobs:
build:
name: Renew documentation
runs-on: ubuntu-latest
steps:
- name: Pull new module version
uses: andrewslotin/go-proxy-pull-action@v1.1.0
with:
import_path: github.com/senzing/check-self
23 changes: 23 additions & 0 deletions .github/workflows/go-security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Based on
# - https://github.com/securego/gosec

name: go-security.yaml
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...
22 changes: 22 additions & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Based on
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test.yaml

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.20"]
name: Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- run: pwd
- run: go test -v -p 1 ./...
11 changes: 11 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---

name: 'go'

on:
pull_request:
branches: [main]

jobs:
gofmt:
uses: Senzing/build-resources/.github/workflows/gofmt.yaml@main
21 changes: 21 additions & 0 deletions .github/workflows/identify-customer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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:
name: Add customer-submission label
runs-on: ubuntu-latest
steps:
- name: initial labeling
env:
BOOL: ${{ contains( env.MEMBER_LIST, env.CREATOR ) }}
if: ${{ env.BOOL == 'false' }}
uses: andymckay/labeler@1.0.4
with:
add-labels: "customer-submission"
18 changes: 18 additions & 0 deletions .github/workflows/make-go-github-file.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: make-go-github-file.yaml

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

jobs:
build:
name: Update cmd/version.go
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Make github.go file
uses: Senzing/github-action-make-go-github-file@main
16 changes: 16 additions & 0 deletions .github/workflows/make-go-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: make-go-tag.yaml

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

jobs:
build:
name: Make a vM.m.P tag
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Make go version tag
uses: Senzing/github-action-make-go-tag@main
13 changes: 13 additions & 0 deletions .github/workflows/pr-closed-automation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

name: 'pr closed automation'

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 }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@

# Go workspace file
go.work
.history
target/
4 changes: 4 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>check-self</name>
</projectDescription>
Loading

0 comments on commit 4088f88

Please sign in to comment.